@salesforce/b2c-tooling-sdk / auth / InstanceAuthSession
Interface: InstanceAuthSession
Defined in: packages/b2c-tooling-sdk/src/auth/instance-auth.ts:32
A stored session that the instance configuration can use.
Properties
accessTokenExpiresAt?
optionalaccessTokenExpiresAt:string
Defined in: packages/b2c-tooling-sdk/src/auth/instance-auth.ts:40
Access-token expiry (ISO timestamp), when it can be read.
accessTokenValid
accessTokenValid:
boolean
Defined in: packages/b2c-tooling-sdk/src/auth/instance-auth.ts:42
Whether the access token is still valid.
builtInClient
builtInClient:
boolean
Defined in: packages/b2c-tooling-sdk/src/auth/instance-auth.ts:35
Whether this is the toolkit's built-in public client.
canRefresh
canRefresh:
boolean
Defined in: packages/b2c-tooling-sdk/src/auth/instance-auth.ts:44
Whether an expired access token is renewed silently (PKCE refresh token).
clientId
clientId:
string
Defined in: packages/b2c-tooling-sdk/src/auth/instance-auth.ts:33
flow
flow:
AuthSessionFlow
Defined in: packages/b2c-tooling-sdk/src/auth/instance-auth.ts:36
lastUsedAt?
optionallastUsedAt:string
Defined in: packages/b2c-tooling-sdk/src/auth/instance-auth.ts:45
scopes?
optionalscopes:string[]
Defined in: packages/b2c-tooling-sdk/src/auth/instance-auth.ts:47
Scopes recorded with the access token.
usedFor
usedFor:
InstanceAuthTarget[]
Defined in: packages/b2c-tooling-sdk/src/auth/instance-auth.ts:49
Request types the session serves with this configuration.
user?
optionaluser:string
Defined in: packages/b2c-tooling-sdk/src/auth/instance-auth.ts:38
Account Manager user (JWT sub), when recorded.