Skip to content
IC Reactor

AuthClientLike

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

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.

getIdentity(): Identity | Promise<Identity>

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

Identity | Promise<Identity>


isAuthenticated(): boolean | Promise<boolean>

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

boolean | Promise<boolean>


signIn(options?): Promise<Identity>

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

AuthClientSignInOptions

Promise<Identity>


signOut(options?): Promise<void>

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

string

Promise<void>


requestAttributes(params): Promise<SignedIdentityAttributes>

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

string[]

() => Promise<Uint8Array<ArrayBufferLike>>

Promise<SignedIdentityAttributes>