Update auth.ts

This commit is contained in:
Daniel Hougaard
2025-05-31 23:06:49 +04:00
parent 02c21ca429
commit f32dad934b

View File

@@ -96,6 +96,12 @@ export default class AuthClient {
},
};
/**
* Gets the current access token that is set on the SDK instance
* @returns The current access token or null if no access token is set. `null` is returned if the SDK is not authenticated.
*/
getAccessToken = () => this._accessToken || null;
accessToken = (token: string) => {
return this.sdkAuthenticator(token);
};