API Reference > itwin-client > Authentication > AccessToken > toTokenString 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 clients/itwin/src/Token.ts Line 109 Last Updated: 12 June, 2024