# AuthClientLike

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

Structural subset of `@icp-sdk/auth`'s `AuthClient` that IC Reactor relies
on. Declared locally so `@icp-sdk/auth` stays an optional peer dependency.

Every method here is identical across the supported majors (v8 and v10) --
only the option objects handed to the constructor and to `signIn` diverge,
and `auth-client-compat.ts` translates those. That is what lets one interface
describe both.

## Methods

### getIdentity()

> **getIdentity**(): `Identity` \| `Promise`\<`Identity`\>

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

#### Returns

`Identity` \| `Promise`\<`Identity`\>

***

### isAuthenticated()

> **isAuthenticated**(): `boolean` \| `Promise`\<`boolean`\>

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

#### Returns

`boolean` \| `Promise`\<`boolean`\>

***

### signIn()

> **signIn**(`options?`): `Promise`\<`Identity`\>

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

#### Parameters

##### options?

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

#### Returns

`Promise`\<`Identity`\>

***

### signOut()

> **signOut**(`options?`): `Promise`\<`void`\>

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

#### Parameters

##### options?

###### returnTo?

`string`

#### Returns

`Promise`\<`void`\>

***

### requestAttributes()

> **requestAttributes**(`params`): `Promise`\<[`SignedIdentityAttributes`](https://ic-reactor.b3pay.net/v3/libs/interfaces/signedidentityattributes/)\>

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

#### Parameters

##### params

###### keys

`string`[]

###### nonce

() => `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>

#### Returns

`Promise`\<[`SignedIdentityAttributes`](https://ic-reactor.b3pay.net/v3/libs/interfaces/signedidentityattributes/)\>