Skip to content

AuthClientLoginOptions

Defined in: auth-client.ts:124

Options for AuthClient.login.

optional maxTimeToLive?: bigint

Defined in: auth-client.ts:129

Maximum lifetime of the delegation in nanoseconds.

8 hours

optional onError?: 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.


optional onSuccess?: OnSuccessFunc

Defined in: auth-client.ts:139

Called after a successful login.


optional targets?: Principal[]

Defined in: auth-client.ts:134

Restrict the delegation to specific canisters.