twitch-auth
Advanced tools
Comparing version 4.2.5 to 4.2.6
@@ -1,2 +0,2 @@ | ||
import { AccessToken } from '../AccessToken'; | ||
import type { AccessToken } from '../AccessToken'; | ||
/** | ||
@@ -3,0 +3,0 @@ * The type of token an auth provider can return - user tokens and app tokens are supported. |
@@ -1,3 +0,3 @@ | ||
import { AccessToken } from '../AccessToken'; | ||
import { AuthProvider, AuthProviderTokenType } from './AuthProvider'; | ||
import type { AccessToken } from '../AccessToken'; | ||
import type { AuthProvider, AuthProviderTokenType } from './AuthProvider'; | ||
/** | ||
@@ -44,3 +44,3 @@ * An auth provider that retrieve tokens using client credentials. | ||
*/ | ||
get currentScopes(): never[]; | ||
get currentScopes(): string[]; | ||
} |
@@ -1,3 +0,3 @@ | ||
import { AccessToken } from '../AccessToken'; | ||
import { AuthProvider } from './AuthProvider'; | ||
import type { AccessToken } from '../AccessToken'; | ||
import type { AuthProvider, AuthProviderTokenType } from './AuthProvider'; | ||
/** | ||
@@ -49,3 +49,3 @@ * Configuration for the {@RefreshableAuthProvider}. | ||
*/ | ||
get tokenType(): "user" | "app" | undefined; | ||
get tokenType(): AuthProviderTokenType | undefined; | ||
/** | ||
@@ -52,0 +52,0 @@ * Retrieves an access token. |
import { AccessToken } from '../AccessToken'; | ||
import { AuthProvider, AuthProviderTokenType } from './AuthProvider'; | ||
import type { AuthProvider, AuthProviderTokenType } from './AuthProvider'; | ||
/** | ||
@@ -4,0 +4,0 @@ * An auth provider that always returns the same initially given credentials. |
@@ -1,2 +0,2 @@ | ||
export { AccessToken } from './AccessToken'; | ||
export { AccessToken, AccessTokenData } from './AccessToken'; | ||
export { exchangeCode, getAppToken, getTokenInfo, refreshUserToken, revokeToken } from './helpers'; | ||
@@ -3,0 +3,0 @@ export { TokenInfo, TokenInfoData } from './TokenInfo'; |
@@ -1,2 +0,2 @@ | ||
import { AccessTokenData } from './AccessToken'; | ||
import type { AccessTokenData } from './AccessToken'; | ||
/** @deprecated No replacement. */ | ||
@@ -3,0 +3,0 @@ export interface LegacyAuthCredentials { |
@@ -36,5 +36,5 @@ /** @private */ | ||
* | ||
* If this returns null, it means that the token is either invalid or never expires (happens with old client IDs). | ||
* If this returns null, it means that the token never expires (happens with some old client IDs). | ||
*/ | ||
get expiryDate(): Date | null; | ||
} |
@@ -57,3 +57,3 @@ "use strict"; | ||
* | ||
* If this returns null, it means that the token is either invalid or never expires (happens with old client IDs). | ||
* If this returns null, it means that the token never expires (happens with some old client IDs). | ||
*/ | ||
@@ -60,0 +60,0 @@ get: function () { |
{ | ||
"name": "twitch-auth", | ||
"version": "4.2.5", | ||
"version": "4.2.6", | ||
"description": "Authenticate with Twitch and stop caring about refreshing tokens.", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
"tslib": "^2.0.0", | ||
"twitch-api-call": "^4.2.5" | ||
"twitch-api-call": "^4.2.6" | ||
}, | ||
@@ -48,3 +48,3 @@ "files": [ | ||
}, | ||
"gitHead": "acd8fef848bc0afd34b1c97decd805dc402b22ef" | ||
"gitHead": "c90f947295ac0ace4690491bf0f31fe46c75c6e8" | ||
} |
Sorry, the diff of this file is not supported yet
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
94235
Updatedtwitch-api-call@^4.2.6