AuthClientLoginOptions
Defined in: auth-client.ts:124
Options for AuthClient.login.
Properties
Section titled “Properties”maxTimeToLive?
Section titled “maxTimeToLive?”
optionalmaxTimeToLive?:bigint
Defined in: auth-client.ts:129
Maximum lifetime of the delegation in nanoseconds.
Default
Section titled “Default”8 hoursonError?
Section titled “onError?”
optionalonError?:OnErrorFunc
Defined in: auth-client.ts:145
Called when login fails. When provided the error is not re-thrown, allowing the caller to handle it via this callback instead.
onSuccess?
Section titled “onSuccess?”
optionalonSuccess?:OnSuccessFunc
Defined in: auth-client.ts:139
Called after a successful login.
targets?
Section titled “targets?”
optionaltargets?:Principal[]
Defined in: auth-client.ts:134
Restrict the delegation to specific canisters.