Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@twurple/auth

Package Overview
Dependencies
Maintainers
2
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twurple/auth - npm Package Compare versions

Comparing version 5.0.0-pre.5 to 5.0.0-pre.6

2

lib/AuthProvider/ClientCredentialsAuthProvider.js

@@ -41,3 +41,3 @@ "use strict";

if (!this._token || AccessToken_1.accessTokenIsExpired(this._token)) {
return this.refresh();
return await this.refresh();
}

@@ -44,0 +44,0 @@ return this._token;

@@ -28,3 +28,3 @@ "use strict";

return createAccessTokenFromData(await api_call_1.callTwitchApi({
type: api_call_1.TwitchApiCallType.Auth,
type: 'auth',
url: 'token',

@@ -51,3 +51,3 @@ method: 'POST',

return createAccessTokenFromData(await api_call_1.callTwitchApi({
type: api_call_1.TwitchApiCallType.Auth,
type: 'auth',
url: 'token',

@@ -72,3 +72,3 @@ method: 'POST',

return createAccessTokenFromData(await api_call_1.callTwitchApi({
type: api_call_1.TwitchApiCallType.Auth,
type: 'auth',
url: 'token',

@@ -93,3 +93,3 @@ method: 'POST',

await api_call_1.callTwitchApi({
type: api_call_1.TwitchApiCallType.Auth,
type: 'auth',
url: 'revoke',

@@ -114,3 +114,3 @@ method: 'POST',

try {
const data = await api_call_1.callTwitchApi({ type: api_call_1.TwitchApiCallType.Auth, url: 'validate' }, clientId, accessToken);
const data = await api_call_1.callTwitchApi({ type: 'auth', url: 'validate' }, clientId, accessToken);
return new TokenInfo_1.TokenInfo(data);

@@ -117,0 +117,0 @@ }

{
"name": "@twurple/auth",
"version": "5.0.0-pre.5",
"version": "5.0.0-pre.6",
"publishConfig": {

@@ -37,4 +37,4 @@ "access": "public"

"@d-fischer/shared-utils": "^3.0.1",
"@twurple/api-call": "^5.0.0-pre.5",
"@twurple/common": "^5.0.0-pre.5",
"@twurple/api-call": "^5.0.0-pre.6",
"@twurple/common": "^5.0.0-pre.6",
"tslib": "^2.0.3"

@@ -53,3 +53,3 @@ },

},
"gitHead": "6426110a30531a5b3aaff025d7b4babeec3790de"
"gitHead": "ce8b79e0eb955f087a58cb92269de8e0a1f42373"
}

@@ -0,1 +1,5 @@

# ⚠ WARNING
This is a future version still in development. For a stable version, check out [the `twitch-auth` package](https://www.npmjs.com/package/twitch-auth).
# Twurple - Authentication

@@ -2,0 +6,0 @@

Sorry, the diff of this file is not supported yet

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