Skip to content
IC Reactor

RequestOpenIdIdentityAttributesParameters

Defined in: react/src/auth/types.ts:185

optional identityProvider?: string | URL

Defined in: react/src/auth/types.ts:96

Identity provider URL.

"https://id.ai/authorize"

AuthenticationClientOptions.identityProvider


optional windowOpenerFeatures?: string

Defined in: react/src/auth/types.ts:98

window.open features string for the identity provider popup.

AuthenticationClientOptions.windowOpenerFeatures


optional derivationOrigin?: 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

AuthenticationClientOptions.derivationOrigin


optional storage?: AuthClientStorageLike

Defined in: react/src/auth/types.ts:118

Persistent storage backend.

IndexedDB

AuthenticationClientOptions.storage


optional keyType?: AuthClientKeyType

Defined in: react/src/auth/types.ts:123

Session key algorithm. Use "Ed25519" when the storage backend cannot hold a CryptoKey.

"ECDSA"

AuthenticationClientOptions.keyType


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

AuthenticationClientOptions.idleOptions


optional identity?: SignIdentity | PartialIdentity

Defined in: react/src/auth/types.ts:130

An existing identity to authenticate via delegation.

AuthenticationClientOptions.identity


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

"window"

AuthenticationClientOptions.transport


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

false

AuthenticationClientOptions.disableBrowserActivity


keys: string[]

Defined in: react/src/auth/types.ts:173

RequestIdentityAttributesParameters.keys


nonce: IdentityAttributeNonce

Defined in: react/src/auth/types.ts:174

RequestIdentityAttributesParameters.nonce


optional signIn?: boolean

Defined in: react/src/auth/types.ts:179

Sign in as part of the same identity-provider interaction.

true

RequestIdentityAttributesParameters.signIn


optional maxTimeToLive?: bigint

Defined in: react/src/auth/types.ts:180

RequestIdentityAttributesParameters.maxTimeToLive


optional maxTimeToIdle?: bigint

Defined in: react/src/auth/types.ts:181

RequestIdentityAttributesParameters.maxTimeToIdle


optional targets?: Principal[]

Defined in: react/src/auth/types.ts:182

RequestIdentityAttributesParameters.targets


openIdProvider: IdentityAttributeOpenIdProvider

Defined in: react/src/auth/types.ts:198

Provider the requested keys are scoped to, producing openid:<issuer>:<key>.

Passing one of the "google" | "apple" | "microsoft" aliases additionally routes sign-in through that provider, so the user grants attribute access in the same step. A raw issuer URL only scopes the keys.

IdentityAttributeOpenIdProvider