TokenProviderOptions
Defined in: libs/ccs-files-user-client/src/core/types.ts:727
Properties
Section titled “Properties”url:
string
Defined in: libs/ccs-files-user-client/src/core/types.ts:729
Your backend’s token route, e.g. /api/files-token.
headers?
Section titled “headers?”
optionalheaders?:Record<string,string> | (() =>Record<string,string> |Promise<Record<string,string>>)
Defined in: libs/ccs-files-user-client/src/core/types.ts:731
Headers for the route (your app’s own session), or a function returning them (read on every request).
credentials?
Section titled “credentials?”
optionalcredentials?:RequestCredentials
Defined in: libs/ccs-files-user-client/src/core/types.ts:735
fetch credentials mode for a cookie session, e.g. 'include'.
method?
Section titled “method?”
optionalmethod?:"GET"|"POST"
Defined in: libs/ccs-files-user-client/src/core/types.ts:737
Default 'GET'.
fetch?
Section titled “fetch?”
optionalfetch?: {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Defined in: libs/ccs-files-user-client/src/core/types.ts:738
Call Signature
Section titled “Call Signature”(
input,init?):Promise<Response>
Parameters
Section titled “Parameters”URL | RequestInfo
RequestInit
Returns
Section titled “Returns”Promise<Response>
Call Signature
Section titled “Call Signature”(
input,init?):Promise<Response>
Parameters
Section titled “Parameters”string | URL | Request
RequestInit
Returns
Section titled “Returns”Promise<Response>
expiryMarginSeconds?
Section titled “expiryMarginSeconds?”
optionalexpiryMarginSeconds?:number
Defined in: libs/ccs-files-user-client/src/core/types.ts:740
Renew this long before expires_in runs out. Default 60.
optionalnow?: () =>number
Defined in: libs/ccs-files-user-client/src/core/types.ts:742
Clock override for tests.
Returns
Section titled “Returns”number