Skip to content

Commit 2cce8e3

Browse files
authoredMar 5, 2025
Merge pull request #28 from Mermaid-Chart/remove-getUser-call-sdk
removed getUser call from setAccessToken
2 parents de2b733 + 3e70a91 commit 2cce8e3

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed
 

‎packages/sdk/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mermaidchart/sdk",
3-
"version": "0.2.1-alpha.0",
3+
"version": "0.2.1-alpha.1",
44
"description": "Access the MermaidChart services with OAuth and type safety.",
55
"browser": "dist/bundle.iife.js",
66
"types": "dist/index.d.ts",

‎packages/sdk/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ export class MermaidChart {
152152
*/
153153
public async setAccessToken(accessToken: string): Promise<void> {
154154
this.axios.defaults.headers.common['Authorization'] = `Bearer ${accessToken}`;
155-
// This is to verify that the token is valid
156-
await this.getUser();
157155
this.accessToken = accessToken;
158156
}
159157

0 commit comments

Comments
 (0)
Failed to load comments.