We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents de2b733 + 3e70a91 commit 2cce8e3Copy full SHA for 2cce8e3
packages/sdk/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@mermaidchart/sdk",
3
- "version": "0.2.1-alpha.0",
+ "version": "0.2.1-alpha.1",
4
"description": "Access the MermaidChart services with OAuth and type safety.",
5
"browser": "dist/bundle.iife.js",
6
"types": "dist/index.d.ts",
packages/sdk/src/index.ts
@@ -152,8 +152,6 @@ export class MermaidChart {
152
*/
153
public async setAccessToken(accessToken: string): Promise<void> {
154
this.axios.defaults.headers.common['Authorization'] = `Bearer ${accessToken}`;
155
- // This is to verify that the token is valid
156
- await this.getUser();
157
this.accessToken = accessToken;
158
}
159
0 commit comments