# AuthenticationSignInOptions

Defined in: [react/src/auth/types.ts:181](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/auth/types.ts#L181)

## Extends

- [`AuthClientSignInOptions`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authclientsigninoptions/).[`AuthenticationClientOptions`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/)

## Properties

### identityProvider?

> `optional` **identityProvider?**: `string` \| `URL`

Defined in: [react/src/auth/types.ts:99](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/auth/types.ts#L99)

Identity provider URL.

#### Default

```ts
"https://id.ai/authorize"
```

#### Inherited from

[`AuthenticationClientOptions`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/).[`identityProvider`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/#identityprovider)

***

### windowOpenerFeatures?

> `optional` **windowOpenerFeatures?**: `string`

Defined in: [react/src/auth/types.ts:101](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/auth/types.ts#L101)

`window.open` features string for the identity provider popup.

#### Inherited from

[`AuthenticationClientOptions`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/).[`windowOpenerFeatures`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/#windowopenerfeatures)

***

### openIdProvider?

> `optional` **openIdProvider?**: [`IdentityAttributeOpenIdProvider`](https://ic-reactor.b3pay.net/v3/libs/type-aliases/identityattributeopenidprovider/)

Defined in: [react/src/auth/types.ts:110](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/auth/types.ts#L110)

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.

#### See

[IdentityAttributeOpenIdProvider](https://ic-reactor.b3pay.net/v3/libs/type-aliases/identityattributeopenidprovider/)

#### Inherited from

[`AuthenticationClientOptions`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/).[`openIdProvider`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/#openidprovider)

***

### derivationOrigin?

> `optional` **derivationOrigin?**: `string` \| `URL`

Defined in: [react/src/auth/types.ts:119](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/auth/types.ts#L119)

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.

#### See

https://github.com/dfinity/internet-identity/blob/main/docs/internet-identity-spec.adoc

#### Inherited from

[`AuthenticationClientOptions`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/).[`derivationOrigin`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/#derivationorigin)

***

### storage?

> `optional` **storage?**: [`AuthClientStorageLike`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authclientstoragelike/)

Defined in: [react/src/auth/types.ts:124](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/auth/types.ts#L124)

Persistent storage backend. `@icp-sdk/auth` v8 only: v10 drops it with a
one-time warning.

#### Default

```ts
IndexedDB
```

#### Inherited from

[`AuthenticationClientOptions`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/).[`storage`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/#storage)

***

### keyType?

> `optional` **keyType?**: [`AuthClientKeyType`](https://ic-reactor.b3pay.net/v3/libs/type-aliases/authclientkeytype/)

Defined in: [react/src/auth/types.ts:130](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/auth/types.ts#L130)

Session key algorithm. Use `"Ed25519"` when the storage backend cannot
hold a `CryptoKey`. `@icp-sdk/auth` v8 only: v10 drops it with a one-time
warning.

#### Default

```ts
"ECDSA"
```

#### Inherited from

[`AuthenticationClientOptions`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/).[`keyType`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/#keytype)

***

### idleOptions?

> `optional` **idleOptions?**: [`AuthClientIdleOptions`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authclientidleoptions/)

Defined in: [react/src/auth/types.ts:140](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/auth/types.ts#L140)

Idle timeout configuration. Pass `{ disableIdle: true }` to opt out of the
default behaviour, which signs the user out and reloads after 10 minutes.

`@icp-sdk/auth` v8 only. v10 has no equivalent, so IC Reactor drops it
there with a one-time warning: on v10 the identity provider enforces the
idle limit, so pass `maxTimeToIdle` to `login()` and set
`disableBrowserActivity` instead.

#### Inherited from

[`AuthenticationClientOptions`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/).[`idleOptions`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/#idleoptions)

***

### identity?

> `optional` **identity?**: `SignIdentity` \| `PartialIdentity`

Defined in: [react/src/auth/types.ts:145](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/auth/types.ts#L145)

An existing identity to authenticate via delegation. `@icp-sdk/auth` v8
only: v10 drops it with a one-time warning.

#### Inherited from

[`AuthenticationClientOptions`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/).[`identity`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/#identity)

***

### transport?

> `optional` **transport?**: `"window"` \| `"redirect"`

Defined in: [react/src/auth/types.ts:151](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/auth/types.ts#L151)

How the client talks to the identity provider. `"redirect"` requires
`@icp-sdk/auth` v8 or later and is ignored by older versions.

#### Default

```ts
"window"
```

#### Inherited from

[`AuthenticationClientOptions`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/).[`transport`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/#transport)

***

### disableBrowserActivity?

> `optional` **disableBrowserActivity?**: `boolean`

Defined in: [react/src/auth/types.ts:160](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/auth/types.ts#L160)

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

```ts
false
```

#### Inherited from

[`AuthenticationClientOptions`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/).[`disableBrowserActivity`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authenticationclientoptions/#disablebrowseractivity)

***

### maxTimeToLive?

> `optional` **maxTimeToLive?**: `bigint`

Defined in: [react/src/auth/types.ts:165](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/auth/types.ts#L165)

The longest the delegation may last, in nanoseconds.

#### Inherited from

[`AuthClientSignInOptions`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authclientsigninoptions/).[`maxTimeToLive`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authclientsigninoptions/#maxtimetolive)

***

### maxTimeToIdle?

> `optional` **maxTimeToIdle?**: `bigint`

Defined in: [react/src/auth/types.ts:173](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/auth/types.ts#L173)

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

[`AuthClientSignInOptions`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authclientsigninoptions/).[`maxTimeToIdle`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authclientsigninoptions/#maxtimetoidle)

***

### targets?

> `optional` **targets?**: `Principal`[]

Defined in: [react/src/auth/types.ts:178](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/auth/types.ts#L178)

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

[`AuthClientSignInOptions`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authclientsigninoptions/).[`targets`](https://ic-reactor.b3pay.net/v3/libs/interfaces/authclientsigninoptions/#targets)

***

### onSuccess?

> `optional` **onSuccess?**: () => `void` \| `Promise`\<`void`\>

Defined in: [react/src/auth/types.ts:183](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/auth/types.ts#L183)

#### Returns

`void` \| `Promise`\<`void`\>

***

### onError?

> `optional` **onError?**: (`error?`) => `void` \| `Promise`\<`void`\>

Defined in: [react/src/auth/types.ts:184](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/auth/types.ts#L184)

#### Parameters

##### error?

`string`

#### Returns

`void` \| `Promise`\<`void`\>