@logto/client 2.7.3 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/client.cjs CHANGED
@@ -160,11 +160,12 @@ class StandardLogtoClient {
160
160
  return js.fetchUserInfo(userinfoEndpoint, accessToken, this.adapter.requester);
161
161
  }
162
162
  async signIn(options, mode, hint) {
163
- const { redirectUri: redirectUriUrl, postRedirectUri: postRedirectUriUrl, firstScreen, interactionMode, loginHint, directSignIn, extraParams, prompt, } = typeof options === 'string' || options instanceof URL
163
+ const { redirectUri: redirectUriUrl, postRedirectUri: postRedirectUriUrl, firstScreen, identifiers, interactionMode, loginHint, directSignIn, extraParams, prompt, } = typeof options === 'string' || options instanceof URL
164
164
  ? {
165
165
  redirectUri: options,
166
166
  postRedirectUri: undefined,
167
167
  firstScreen: undefined,
168
+ identifiers: undefined,
168
169
  interactionMode: mode,
169
170
  loginHint: hint,
170
171
  directSignIn: undefined,
@@ -191,6 +192,7 @@ class StandardLogtoClient {
191
192
  resources,
192
193
  prompt: prompt ?? promptViaConfig,
193
194
  firstScreen,
195
+ identifiers,
194
196
  interactionMode,
195
197
  loginHint,
196
198
  directSignIn,
package/lib/client.d.ts CHANGED
@@ -17,7 +17,7 @@ export type SignInOptions = {
17
17
  * Note: If specified, it will override the prompt value in Logto configs.
18
18
  */
19
19
  prompt?: SignInUriParameters['prompt'];
20
- } & Pick<SignInUriParameters, 'interactionMode' | 'firstScreen' | 'loginHint' | 'directSignIn' | 'extraParams'>;
20
+ } & Pick<SignInUriParameters, 'interactionMode' | 'firstScreen' | 'identifiers' | 'loginHint' | 'directSignIn' | 'extraParams'>;
21
21
  /**
22
22
  * The Logto base client class that provides the essential methods for
23
23
  * interacting with the Logto server.
package/lib/client.js CHANGED
@@ -158,11 +158,12 @@ class StandardLogtoClient {
158
158
  return fetchUserInfo(userinfoEndpoint, accessToken, this.adapter.requester);
159
159
  }
160
160
  async signIn(options, mode, hint) {
161
- const { redirectUri: redirectUriUrl, postRedirectUri: postRedirectUriUrl, firstScreen, interactionMode, loginHint, directSignIn, extraParams, prompt, } = typeof options === 'string' || options instanceof URL
161
+ const { redirectUri: redirectUriUrl, postRedirectUri: postRedirectUriUrl, firstScreen, identifiers, interactionMode, loginHint, directSignIn, extraParams, prompt, } = typeof options === 'string' || options instanceof URL
162
162
  ? {
163
163
  redirectUri: options,
164
164
  postRedirectUri: undefined,
165
165
  firstScreen: undefined,
166
+ identifiers: undefined,
166
167
  interactionMode: mode,
167
168
  loginHint: hint,
168
169
  directSignIn: undefined,
@@ -189,6 +190,7 @@ class StandardLogtoClient {
189
190
  resources,
190
191
  prompt: prompt ?? promptViaConfig,
191
192
  firstScreen,
193
+ identifiers,
192
194
  interactionMode,
193
195
  loginHint,
194
196
  directSignIn,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/client",
3
- "version": "2.7.3",
3
+ "version": "2.8.0",
4
4
  "type": "module",
5
5
  "main": "./lib/index.cjs",
6
6
  "module": "./lib/index.js",
@@ -32,7 +32,7 @@
32
32
  "@silverhand/essentials": "^2.8.7",
33
33
  "camelcase-keys": "^7.0.1",
34
34
  "jose": "^5.2.2",
35
- "@logto/js": "^4.1.5"
35
+ "@logto/js": "^4.2.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@silverhand/eslint-config": "^6.0.1",