AuthenticationSignInOptions
Defined in: react/src/auth/types.ts:166
Extends
Section titled “Extends”Properties
Section titled “Properties”identityProvider?
Section titled “identityProvider?”
optionalidentityProvider?:string|URL
Defined in: react/src/auth/types.ts:96
Identity provider URL.
Default
Section titled “Default”"https://id.ai/authorize"Inherited from
Section titled “Inherited from”AuthenticationClientOptions.identityProvider
windowOpenerFeatures?
Section titled “windowOpenerFeatures?”
optionalwindowOpenerFeatures?:string
Defined in: react/src/auth/types.ts:98
window.open features string for the identity provider popup.
Inherited from
Section titled “Inherited from”AuthenticationClientOptions.windowOpenerFeatures
openIdProvider?
Section titled “openIdProvider?”
optionalopenIdProvider?:IdentityAttributeOpenIdProvider
Defined in: react/src/auth/types.ts:107
Provider for one-click sign-in.
Only the "google" | "apple" | "microsoft" aliases reach the auth client.
Any other value is dropped here and has no effect — raw issuer URLs are
only meaningful on requestOpenId, where they scope the requested keys.
IdentityAttributeOpenIdProvider
Inherited from
Section titled “Inherited from”AuthenticationClientOptions.openIdProvider
derivationOrigin?
Section titled “derivationOrigin?”
optionalderivationOrigin?:string|URL
Defined in: react/src/auth/types.ts:116
Derivation origin for the identity provider.
Required when the app is served from more than one origin (e.g. a custom
domain plus <canisterId>.icp0.io) and every origin must resolve to the
same principal.
https://github.com/dfinity/internet-identity/blob/main/docs/internet-identity-spec.adoc
Inherited from
Section titled “Inherited from”AuthenticationClientOptions.derivationOrigin
storage?
Section titled “storage?”
optionalstorage?:AuthClientStorageLike
Defined in: react/src/auth/types.ts:118
Persistent storage backend.
Default
Section titled “Default”IndexedDBInherited from
Section titled “Inherited from”AuthenticationClientOptions.storage
keyType?
Section titled “keyType?”
optionalkeyType?:AuthClientKeyType
Defined in: react/src/auth/types.ts:123
Session key algorithm. Use "Ed25519" when the storage backend cannot
hold a CryptoKey.
Default
Section titled “Default”"ECDSA"Inherited from
Section titled “Inherited from”AuthenticationClientOptions.keyType
idleOptions?
Section titled “idleOptions?”
optionalidleOptions?:AuthClientIdleOptions
Defined in: react/src/auth/types.ts:128
Idle timeout configuration. Pass { disableIdle: true } to opt out of the
default behaviour, which signs the user out and reloads after 10 minutes.
Inherited from
Section titled “Inherited from”AuthenticationClientOptions.idleOptions
identity?
Section titled “identity?”
optionalidentity?:SignIdentity|PartialIdentity
Defined in: react/src/auth/types.ts:130
An existing identity to authenticate via delegation.
Inherited from
Section titled “Inherited from”AuthenticationClientOptions.identity
transport?
Section titled “transport?”
optionaltransport?:"window"|"redirect"
Defined in: react/src/auth/types.ts:136
How the client talks to the identity provider. "redirect" requires
@icp-sdk/auth v8 or later and is ignored by older versions.
Default
Section titled “Default”"window"Inherited from
Section titled “Inherited from”AuthenticationClientOptions.transport
disableBrowserActivity?
Section titled “disableBrowserActivity?”
optionaldisableBrowserActivity?:boolean
Defined in: react/src/auth/types.ts:145
Stops a v10 client from watching the page for signs of activity, so only requests keep the session in use.
@icp-sdk/auth v10 only. v8 has no equivalent, so IC Reactor drops it
there with a one-time warning. On v8, idleOptions controls idle handling.
Default
Section titled “Default”falseInherited from
Section titled “Inherited from”AuthenticationClientOptions.disableBrowserActivity
maxTimeToLive?
Section titled “maxTimeToLive?”
optionalmaxTimeToLive?:bigint
Defined in: react/src/auth/types.ts:150
The longest the delegation may last, in nanoseconds.
Inherited from
Section titled “Inherited from”AuthClientSignInOptions.maxTimeToLive
maxTimeToIdle?
Section titled “maxTimeToIdle?”
optionalmaxTimeToIdle?:bigint
Defined in: react/src/auth/types.ts:158
How long a signed-in user may be idle before the sign-in ends, in nanoseconds.
@icp-sdk/auth v10 only. v8’s sign-in has no idle limit, so IC Reactor
drops it there with a one-time warning. On v8, set idleOptions instead.
Inherited from
Section titled “Inherited from”AuthClientSignInOptions.maxTimeToIdle
targets?
Section titled “targets?”
optionaltargets?:Principal[]
Defined in: react/src/auth/types.ts:163
Canisters the delegation is restricted to. @icp-sdk/auth v8 only: v10
ignores it, and IC Reactor warns when it is set for a v10 client.
Inherited from
Section titled “Inherited from”AuthClientSignInOptions.targets
onSuccess?
Section titled “onSuccess?”
optionalonSuccess?: () =>void|Promise<void>
Defined in: react/src/auth/types.ts:168
Returns
Section titled “Returns”void | Promise<void>
onError?
Section titled “onError?”
optionalonError?: (error?) =>void|Promise<void>
Defined in: react/src/auth/types.ts:169
Parameters
Section titled “Parameters”error?
Section titled “error?”string
Returns
Section titled “Returns”void | Promise<void>