OAuthSecureTokenResult
OAuthSecureTokenResult =
object&OAuthTokenResult| {mode:"vault";handleId:string;tokenType?:string;expiresAt?:string|null;scopes?:string[]; }
Defined in: namespaces.ts:1404
Discriminated-union token result from the secure OAuth methods.
mode: "direct"— the raw token is returned inline (legacy-compatible).mode: "vault"— the token lives in the fn-72 Vault; JS receives an opaque handle and should useoauth.buildAuthenticatedRequest(...)+network.executeRequest(...)so the raw token never crosses into JS.
Union Members
Section titled “Union Members”object & OAuthTokenResult
Type Literal
Section titled “Type Literal”{ mode: "vault"; handleId: string; tokenType?: string; expiresAt?: string | null; scopes?: string[]; }
mode:
"vault"
handleId
Section titled “handleId”handleId:
string
Opaque vault handle for the stored token.
tokenType?
Section titled “tokenType?”
optionaltokenType?:string
Token type (typically “Bearer”).
expiresAt?
Section titled “expiresAt?”
optionalexpiresAt?:string|null
Expiry timestamp in ISO 8601 format, or null.
scopes?
Section titled “scopes?”
optionalscopes?:string[]
Granted scopes.