hasBearerAuth

View as MarkdownOpen in Claude

Check whether Bearer token authentication is configured on this handler.

Parameters

None.

Returns

booleantrue if a bearer token has been set.

Example

1import { AuthHandler } from '@signalwire/sdk';
2
3const auth = new AuthHandler({
4 bearerToken: 'my-secret-token',
5});
6
7console.log(auth.hasBearerAuth()); // true