Constructs an instead of the StaticTokenProvider.
The token to regurgitate in getTokenAsString
Private
Readonly
#tokenStatic
mergeInternal
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.
Rest
...raw: (string | nullish | TokenProvider)[]
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