Skip to content

Commit f32dad9

Browse files
Update auth.ts
1 parent 02c21ca commit f32dad9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/custom/auth.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ export default class AuthClient {
9696
},
9797
};
9898

99+
/**
100+
* Gets the current access token that is set on the SDK instance
101+
* @returns The current access token or null if no access token is set. `null` is returned if the SDK is not authenticated.
102+
*/
103+
getAccessToken = () => this._accessToken || null;
104+
99105
accessToken = (token: string) => {
100106
return this.sdkAuthenticator(token);
101107
};

0 commit comments

Comments
 (0)