@logto/client
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -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
88929
2077
52
19
Updated@logto/js@^2.1.3