Constructs an instead of the StaticTokenProvider.
The token to regurgitate in getTokenAsString
Private
Readonly
#tokenStatic
parseInternal
Turns a string token into a StaticTokenProvider if necessary. Throws an error if
it's not a string, nullish, or a TokenProvider
already.
Not intended for external use.
The most basic token provider, which simply returns the token it was instantiated with.
Generally, anywhere this can be used in the public
astra-db-ts
interfaces, you may also pass in a plain string or null/undefined, which is transformed into a StaticTokenProvider under the hood.Example
See
TokenProvider