toTokenString Method

Convert this AccessToken to a string that can be passed across the wire Users should overwrite this method in a subclass of AccessToken if their token is not converted to a string in this way.

toTokenString(includePrefix: IncludePrefix = IncludePrefix.Yes): string

Parameter Type Description
includePrefix IncludePrefix Include the token prefix to identify the type of token - "Bearer" for JSON Web Tokens (JWTs)

Returns - string

Defined in

Last Updated: 12 June, 2024