@@ -10,14 +10,14 @@ module Imagekit
1010
1111 DEFAULT_MAX_RETRY_DELAY = T . let ( 8.0 , Float )
1212
13- # Your ImageKit private API key (it starts with `private_`). You can view and
14- # manage API keys in the
15- # [dashboard](https://imagekit.io/dashboard/developer/api-keys).
13+ # Your ImageKit private API key (starts with `private_`). You can find this in the
14+ # [ImageKit dashboard](https://imagekit.io/dashboard/developer/api-keys).
1615 sig { returns ( String ) }
1716 attr_reader :private_key
1817
19- # ImageKit Basic Auth only uses the `private_key` as username and ignores the
20- # password.
18+ # Leave this field unset. ImageKit uses Basic Authentication scheme that requires
19+ # the `private_key` as the username and empty string as the password. The password
20+ # field is automatically managed by the SDK and should not be set.
2121 sig { returns ( T . nilable ( String ) ) }
2222 attr_reader :password
2323
@@ -68,13 +68,14 @@ module Imagekit
6868 ) . returns ( T . attached_class )
6969 end
7070 def self . new (
71- # Your ImageKit private API key (it starts with `private_`). You can view and
72- # manage API keys in the
73- # [dashboard](https://imagekit.io/dashboard/developer/api-keys). Defaults to
74- # `ENV["IMAGEKIT_PRIVATE_API_KEY"]`
71+ # Your ImageKit private API key (starts with `private_`). You can find this in the
72+ # [ImageKit dashboard](https://imagekit.io/dashboard/developer/api-keys). Defaults
73+ # to `ENV["IMAGEKIT_PRIVATE_API_KEY"]`
7574 private_key : ENV [ "IMAGEKIT_PRIVATE_API_KEY" ] ,
76- # ImageKit Basic Auth only uses the `private_key` as username and ignores the
77- # password. Defaults to `ENV["OPTIONAL_IMAGEKIT_IGNORES_THIS"]`
75+ # Leave this field unset. ImageKit uses Basic Authentication scheme that requires
76+ # the `private_key` as the username and empty string as the password. The password
77+ # field is automatically managed by the SDK and should not be set. Defaults to
78+ # `ENV["OPTIONAL_IMAGEKIT_IGNORES_THIS"]`
7879 password : ENV . fetch ( "OPTIONAL_IMAGEKIT_IGNORES_THIS" , "do_not_set" ) ,
7980 # Override the default base URL for the API, e.g.,
8081 # `"https://api.example.com/v2/"`. Defaults to `ENV["IMAGE_KIT_BASE_URL"]`
0 commit comments