Interface: OAuthAuthOptions
Defined in: packages/client/src/core/auth.ts:91
Properties
getToken
getToken: () =>
string|Promise<string> |undefined
Defined in: packages/client/src/core/auth.ts:92
Returns
string | Promise<string> | undefined
refresh?
optionalrefresh?: () =>Promise<string>
Defined in: packages/client/src/core/auth.ts:98
Invoked once when a request comes back 401. Should fetch a fresh token. Omit to disable refresh-on-401. The transport retries the failed request once after a successful refresh — this is not an unlimited retry loop.
Returns
Promise<string>