Socket
Socket
Sign inDemoInstall

twitch-auth

Package Overview
Dependencies
Maintainers
2
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twitch-auth - npm Package Compare versions

Comparing version 4.3.0-pre.1 to 4.3.0-pre.2

2

lib/AuthProvider/AuthProvider.d.ts

@@ -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.3.0-pre.1",
"version": "4.3.0-pre.2",
"description": "Authenticate with Twitch and stop caring about refreshing tokens.",

@@ -35,3 +35,3 @@ "keywords": [

"tslib": "^2.0.0",
"twitch-api-call": "^4.3.0-pre.1"
"twitch-api-call": "^4.3.0-pre.2"
},

@@ -48,3 +48,3 @@ "files": [

},
"gitHead": "6b5834c1ff3a597d6d2169d34cd2bb7cadc034fc"
"gitHead": "36e34e9205f5b4ffd2c88f9bd7cc2939cb49e1d0"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc