New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@logto/client

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@logto/client - npm Package Compare versions

Comparing version 2.6.5 to 2.6.6

4

lib/client.d.ts

@@ -74,2 +74,6 @@ import { type IdTokenClaims, type UserInfoResponse, type AccessTokenClaims, type OidcConfigResponse, type SignInUriParameters } from '@logto/js';

/**
* Clear all cached tokens from storage.
*/
readonly clearAllTokens: (this: unknown) => Promise<void>;
/**
* Handle the sign-in callback by parsing the authorization code from the

@@ -76,0 +80,0 @@ * callback URI and exchanging it for the tokens.

13

lib/client.js

@@ -63,2 +63,6 @@ import { decodeIdToken, decodeAccessToken, fetchUserInfo, generateSignInUri, revoke, generateSignOutUri, fetchTokenByRefreshToken, fetchOidcConfig, UserScope, verifyAndParseCodeFromCallbackUri, fetchTokenByAuthorizationCode } from '@logto/js';

/**
* Clear all cached tokens from storage.
*/
this.clearAllTokens = memoize(this.#clearAllTokens);
/**
* Handle the sign-in callback by parsing the authorization code from the

@@ -185,5 +189,3 @@ * callback URI and exchanging it for the tokens.

this.setSignInSession({ redirectUri, postRedirectUri, codeVerifier, state }),
this.setRefreshToken(null),
this.setIdToken(null),
this.clearAccessToken(),
this.clearAllTokens(),
]);

@@ -236,3 +238,3 @@ await this.adapter.navigate(signInUri, { redirectUri, for: 'sign-in' });

});
await Promise.all([this.setRefreshToken(null), this.setIdToken(null), this.clearAccessToken()]);
await this.clearAllTokens();
await this.adapter.navigate(url, { redirectUri: postLogoutRedirectUri, for: 'sign-out' });

@@ -355,2 +357,5 @@ }

}
async #clearAllTokens() {
await Promise.all([this.setRefreshToken(null), this.setIdToken(null), this.clearAccessToken()]);
}
async #handleSignInCallback(callbackUri) {

@@ -357,0 +362,0 @@ const signInSession = await this.getSignInSession();

{
"name": "@logto/client",
"version": "2.6.5",
"version": "2.6.6",
"type": "module",

@@ -5,0 +5,0 @@ "main": "./lib/index.cjs",

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