@oslojs/oauth2
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -1,2 +0,2 @@ | ||
export declare class OAuthRequestErrorResult { | ||
export declare class OAuth2RequestResult { | ||
body: object; | ||
@@ -13,3 +13,3 @@ constructor(body: object); | ||
} | ||
export declare class TokenRequestResult extends OAuthRequestErrorResult { | ||
export declare class TokenRequestResult extends OAuth2RequestResult { | ||
tokenType(): string; | ||
@@ -24,3 +24,3 @@ accessToken(): string; | ||
} | ||
export declare class DeviceAuthorizationRequestResult extends OAuthRequestErrorResult { | ||
export declare class DeviceAuthorizationRequestResult extends OAuth2RequestResult { | ||
deviceCode(): string; | ||
@@ -27,0 +27,0 @@ userCode(): string; |
@@ -1,2 +0,2 @@ | ||
export class OAuthRequestErrorResult { | ||
export class OAuth2RequestResult { | ||
body; | ||
@@ -43,3 +43,3 @@ constructor(body) { | ||
} | ||
export class TokenRequestResult extends OAuthRequestErrorResult { | ||
export class TokenRequestResult extends OAuth2RequestResult { | ||
tokenType() { | ||
@@ -85,3 +85,3 @@ if ("token_type" in this.body && typeof this.body.token_type === "string") { | ||
} | ||
export class DeviceAuthorizationRequestResult extends OAuthRequestErrorResult { | ||
export class DeviceAuthorizationRequestResult extends OAuth2RequestResult { | ||
deviceCode() { | ||
@@ -88,0 +88,0 @@ if ("device_code" in this.body && typeof this.body.device_code === "string") { |
{ | ||
"name": "@oslojs/oauth2", | ||
"type": "module", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "A runtime-agnostic OAuth 2.0 library", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
8325