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.2.2 to 2.2.3

7

lib/index.d.ts

@@ -7,3 +7,3 @@ import { type IdTokenClaims, type UserInfoResponse, type InteractionMode, type AccessTokenClaims } from '@logto/js';

export type { IdTokenClaims, LogtoErrorCode, UserInfoResponse, InteractionMode } from '@logto/js';
export { LogtoError, OidcError, Prompt, LogtoRequestError, ReservedScope, UserScope, } from '@logto/js';
export { LogtoError, LogtoRequestError, OidcError, Prompt, ReservedScope, UserScope, } from '@logto/js';
export * from './errors.js';

@@ -116,4 +116,5 @@ export type { Storage, StorageKey, ClientAdapter } from './adapter/index.js';

*
* @param callbackUri The callback URI that the user is redirected to after the sign-in flow is completed.
* This URI must match the redirect URI specified in {@link signIn}.
* @param callbackUri The callback URI, including the search params, that the user is redirected to after the sign-in flow is completed.
* The origin and pathname of this URI must match the origin and pathname of the redirect URI specified in {@link signIn}.
* In many cases you'll probably end up passing `window.location.href` as the argument to this function.
* @throws LogtoClientError if the sign-in session is not found.

@@ -120,0 +121,0 @@ */

@@ -183,4 +183,5 @@ import { Prompt, withDefaultScopes, decodeIdToken, decodeAccessToken, fetchUserInfo, generateSignInUri, verifyAndParseCodeFromCallbackUri, fetchTokenByAuthorizationCode, revoke, generateSignOutUri, fetchTokenByRefreshToken, verifyIdToken, fetchOidcConfig } from '@logto/js';

*
* @param callbackUri The callback URI that the user is redirected to after the sign-in flow is completed.
* This URI must match the redirect URI specified in {@link signIn}.
* @param callbackUri The callback URI, including the search params, that the user is redirected to after the sign-in flow is completed.
* The origin and pathname of this URI must match the origin and pathname of the redirect URI specified in {@link signIn}.
* In many cases you'll probably end up passing `window.location.href` as the argument to this function.
* @throws LogtoClientError if the sign-in session is not found.

@@ -303,3 +304,5 @@ */

await this.saveAccessTokenMap();
await this.setRefreshToken(refreshToken);
if (refreshToken) {
await this.setRefreshToken(refreshToken);
}
if (idToken) {

@@ -306,0 +309,0 @@ await this.verifyIdToken(idToken);

{
"name": "@logto/client",
"version": "2.2.2",
"version": "2.2.3",
"type": "module",

@@ -24,3 +24,3 @@ "main": "./lib/index.cjs",

"dependencies": {
"@logto/js": "^2.1.2",
"@logto/js": "^2.1.3",
"@silverhand/essentials": "^2.6.2",

@@ -40,7 +40,7 @@ "camelcase-keys": "^7.0.1",

"jest-matcher-specific-error": "^1.0.0",
"lint-staged": "^13.0.0",
"lint-staged": "^14.0.0",
"nock": "^13.3.0",
"prettier": "^3.0.0",
"text-encoder": "^0.0.4",
"type-fest": "^3.0.0",
"type-fest": "^4.0.0",
"typescript": "^5.0.0"

@@ -47,0 +47,0 @@ },

@@ -8,4 +8,2 @@ # Logto Client SDK

We also provide [文档](https://docs.logto.io/zh-cn/sdk/JavaScript/sdk/client/) in Simplified Chinese.
## Installation

@@ -12,0 +10,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