You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -259,6 +259,29 @@ To initiate the SSO request flow, run the following snippet.
259
259
});
260
260
```
261
261
262
+
**Note:**
263
+
When using mobile SSO (single sign-on using the central login page), logging out using the SDK's logout method will only log the user out of the current API key used.
264
+
The user will not be logged out of the other group sites.
265
+
266
+
## Session Exchange Between Mobile & WebView
267
+
268
+
Applications (mobile/web) within the same site group are now able to share a session from the mobile application to a web page running the JS SDK.
269
+
270
+
Follow these steps to allow session exchange:
271
+
272
+
1. Use the “getAuthCode” interface. This call will provide you with the required code that the web page will require for the exchange.
273
+
```dart
274
+
final String? result = await widget.sdk.getAuthCode();
275
+
```
276
+
277
+
2. Add these URL parameters to your hosted page/website URL using the provided code:
3. Make sure that the WebView element you are using to open the URL has JavaScript enabled.
281
+
282
+
4. Once the page is loaded, the JS SDK will exchange the token provided for a valid session.
283
+
284
+
262
285
## FIDO/WebAuthn Authentication
263
286
FIDO is a passwordless authentication method that allows password-only logins to be replaced with secure and fast login experiences across websites and apps.
0 commit comments