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.
Methods
Section titled “Methods”getIdentity()
Section titled “getIdentity()”getIdentity():
Identity|Promise<Identity>
Defined in: react/src/auth/types.ts:211
Returns
Section titled “Returns”Identity | Promise<Identity>
isAuthenticated()
Section titled “isAuthenticated()”isAuthenticated():
boolean|Promise<boolean>
Defined in: react/src/auth/types.ts:212
Returns
Section titled “Returns”boolean | Promise<boolean>
signIn()
Section titled “signIn()”signIn(
options?):Promise<Identity>
Defined in: react/src/auth/types.ts:213
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Promise<Identity>
signOut()
Section titled “signOut()”signOut(
options?):Promise<void>
Defined in: react/src/auth/types.ts:214
Parameters
Section titled “Parameters”options?
Section titled “options?”returnTo?
Section titled “returnTo?”string
Returns
Section titled “Returns”Promise<void>
requestAttributes()
Section titled “requestAttributes()”requestAttributes(
params):Promise<SignedIdentityAttributes>
Defined in: react/src/auth/types.ts:215
Parameters
Section titled “Parameters”params
Section titled “params”string[]
() => Promise<Uint8Array<ArrayBufferLike>>
Returns
Section titled “Returns”Promise<SignedIdentityAttributes>