Comparing version 3.2.0 to 3.2.1
@@ -7,2 +7,3 @@ import type { OAuth2Tokens } from "../oauth2.js"; | ||
validateAuthorizationCode(code: string): Promise<OAuth2Tokens>; | ||
refreshAccessToken(refreshToken: string): Promise<OAuth2Tokens>; | ||
} |
import { OAuth2Client } from "../client.js"; | ||
const authorizationEndpoint = "https://www.figma.com/oauth"; | ||
const tokenEndpoint = "https://www.figma.com/api/oauth/token"; | ||
const refreshEndpoint = "https://api.figma.com/v1/oauth/refresh"; | ||
export class Figma { | ||
@@ -17,2 +18,6 @@ client; | ||
} | ||
async refreshAccessToken(refreshToken) { | ||
const tokens = await this.client.refreshAccessToken(refreshEndpoint, refreshToken, []); | ||
return tokens; | ||
} | ||
} |
{ | ||
"name": "arctic", | ||
"type": "module", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "OAuth 2.0 clients for popular providers", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
129365
2981