Comparing version 2.0.0-next.5 to 2.0.0-next.6
@@ -11,4 +11,2 @@ export declare class OAuth2Tokens { | ||
refreshToken(): string; | ||
refreshTokenExpiresInSeconds(): number; | ||
refreshTokenExpiresAt(): Date; | ||
hasScopes(): boolean; | ||
@@ -15,0 +13,0 @@ scopes(): string[]; |
@@ -29,12 +29,2 @@ import { base64url } from "@oslojs/encoding"; | ||
} | ||
refreshTokenExpiresInSeconds() { | ||
if ("refresh_token_expires_in" in this.data && | ||
typeof this.data.refresh_token_expires_in === "number") { | ||
return this.data.refresh_token_expires_in; | ||
} | ||
throw new Error("Missing or invalid 'refresh_token_expires_in' field"); | ||
} | ||
refreshTokenExpiresAt() { | ||
return new Date(Date.now() + this.refreshTokenExpiresInSeconds() * 1000); | ||
} | ||
hasScopes() { | ||
@@ -41,0 +31,0 @@ return this.result.hasScopes(); |
{ | ||
"name": "arctic", | ||
"type": "module", | ||
"version": "2.0.0-next.5", | ||
"version": "2.0.0-next.6", | ||
"description": "OAuth 2.0 clients for popular providers", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
@@ -47,3 +47,3 @@ # Arctic | ||
- Figma | ||
- Github | ||
- GitHub | ||
- GitLab | ||
@@ -50,0 +50,0 @@ - Google |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
134386
3014