@logto/client
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -1,2 +0,2 @@ | ||
import { Requester, Prompt, IdTokenClaims, UserInfoResponse } from "@logto/js"; | ||
import { Requester, Prompt, IdTokenClaims, UserInfoResponse, InteractionMode } from "@logto/js"; | ||
import { Nullable, NormalizeKeyPaths } from "@silverhand/essentials"; | ||
@@ -55,3 +55,3 @@ export type StorageKey = 'idToken' | 'refreshToken' | 'accessToken' | 'signInSession'; | ||
export const createRequester: (fetchFunction: typeof fetch) => Requester; | ||
export type { IdTokenClaims, LogtoErrorCode, UserInfoResponse } from '@logto/js'; | ||
export type { IdTokenClaims, LogtoErrorCode, UserInfoResponse, InteractionMode } from '@logto/js'; | ||
export { LogtoError, OidcError, Prompt, LogtoRequestError, ReservedScope, UserScope, } from '@logto/js'; | ||
@@ -71,3 +71,3 @@ export default class LogtoClient { | ||
fetchUserInfo(): Promise<UserInfoResponse>; | ||
signIn(redirectUri: string): Promise<void>; | ||
signIn(redirectUri: string, interactionMode?: InteractionMode): Promise<void>; | ||
isSignInRedirected(url: string): Promise<boolean>; | ||
@@ -74,0 +74,0 @@ handleSignInCallback(callbackUri: string): Promise<void>; |
@@ -165,3 +165,3 @@ var $4R6L3$logtojs = require("@logto/js"); | ||
} | ||
async signIn(redirectUri) { | ||
async signIn(redirectUri, interactionMode) { | ||
const { appId: clientId , prompt: prompt , resources: resources , scopes: scopes } = this.logtoConfig; | ||
@@ -180,3 +180,4 @@ const { authorizationEndpoint: authorizationEndpoint } = await this.getOidcConfig(); | ||
resources: resources, | ||
prompt: prompt | ||
prompt: prompt, | ||
interactionMode: interactionMode | ||
}); | ||
@@ -183,0 +184,0 @@ await this.setSignInSession({ |
{ | ||
"name": "@logto/client", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"source": "./src/index.ts", | ||
@@ -32,3 +32,3 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@logto/js": "^1.0.0", | ||
"@logto/js": "^1.1.0", | ||
"@silverhand/essentials": "^1.2.1", | ||
@@ -70,3 +70,3 @@ "camelcase-keys": "^7.0.1", | ||
}, | ||
"gitHead": "fff27b23a74d5bd3a46fc83fbbc2901b6e054c72" | ||
"gitHead": "f24174a6f840b8db968ad3886878d1b6e92b1b9d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
104055
698
Updated@logto/js@^1.1.0