@salesforce/b2c-tooling-sdk / auth / AuthSession
Interface: AuthSession
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:48
Properties
accessToken
accessToken:
string
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:52
accountManagerHost?
optionalaccountManagerHost:string|null
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:62
Account Manager host the session was minted against.
clientId
clientId:
string
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:49
expiresAt?
optionalexpiresAt:string|null
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:58
ISO timestamp of access-token expiry (informational; JWT exp is authoritative).
flow
flow:
AuthSessionFlow
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:51
Which flow produced this session (informational; controls refresh policy).
lastUsedAt?
optionallastUsedAt:string|null
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:64
ISO timestamp of the most recent write.
refreshToken?
optionalrefreshToken:string|null
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:54
Only set for PKCE. Implicit and client-credentials never have a refresh token.
scopes?
optionalscopes:string[]
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:60
Scopes recorded with the access token.
sub?
optionalsub:string|null
Defined in: packages/b2c-tooling-sdk/src/auth/session-store.ts:56
JWT sub claim, when available. Recorded for diagnostics.