Skip to content

Type Alias: AccessTokenProvider ​

ts
type AccessTokenProvider = () => Promise<string | undefined> | string | undefined;

Returns the current bearer token, or nothing when the caller is not signed in.

Returns ​

Promise<string | undefined> | string | undefined

Released under the Apache-2.0 License.