Comparing version 3.1.2 to 3.1.3
import { createS256CodeChallenge } from "../oauth2.js"; | ||
import { createOAuth2Request, sendTokenRequest, sendTokenRevocationRequest } from "../request.js"; | ||
const authorizationEndpoint = "https://www.tiktok.com/v2/auth/authorize"; | ||
const tokenEndpoint = "https://open.tiktokapis.com/v2/oauth/token"; | ||
const tokenRevocationEndpoint = "https://open.tiktokapis.com/v2/oauth/revoke"; | ||
const tokenEndpoint = "https://open.tiktokapis.com/v2/oauth/token/"; | ||
const tokenRevocationEndpoint = "https://open.tiktokapis.com/v2/oauth/revoke/"; | ||
export class TikTok { | ||
@@ -24,3 +24,3 @@ clientKey; | ||
if (scopes.length > 0) { | ||
url.searchParams.set("scope", scopes.join(" ")); | ||
url.searchParams.set("scope", scopes.join(",")); | ||
} | ||
@@ -27,0 +27,0 @@ url.searchParams.set("redirect_uri", this.redirectURI); |
{ | ||
"name": "arctic", | ||
"type": "module", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "OAuth 2.0 clients for popular providers", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
127527