@drmhse/sso-sdk 0.5.2 → 0.5.4
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/README.md +16 -2
- package/dist/index.d.mts +4598 -4465
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +4598 -4465
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4554 -4979
- package/dist/index.mjs +4539 -4937
- package/dist/index.mjs.map +1 -0
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -47,16 +47,30 @@ const sso = new SsoClient({ baseURL: 'https://sso.example.com' });
|
|
|
47
47
|
|
|
48
48
|
### Tenant application
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
Redirect users to AuthOS hosted login for the standard web flow. AuthOS handles provider selection, HRD, password, magic link, passkeys, MFA, and recovery before returning tokens to your callback:
|
|
51
51
|
|
|
52
52
|
```ts
|
|
53
|
-
const loginUrl = sso.auth.
|
|
53
|
+
const loginUrl = sso.auth.getAuthorizeUrl({
|
|
54
54
|
org: 'acme-corp',
|
|
55
55
|
service: 'main-app',
|
|
56
56
|
redirect_uri: 'https://app.acme.com/callback',
|
|
57
57
|
});
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
+
Use `getLoginUrl(provider, ...)` only when you are intentionally building a custom provider-selection flow.
|
|
61
|
+
|
|
62
|
+
### Account security
|
|
63
|
+
|
|
64
|
+
Send users to the hosted account-security portal to manage MFA, passkeys, backup codes, and trusted devices on the AuthOS origin:
|
|
65
|
+
|
|
66
|
+
```ts
|
|
67
|
+
const securityUrl = sso.auth.getAccountSecurityUrl({
|
|
68
|
+
org: 'acme-corp',
|
|
69
|
+
service: 'main-app',
|
|
70
|
+
return_to: 'https://app.acme.com/settings',
|
|
71
|
+
});
|
|
72
|
+
```
|
|
73
|
+
|
|
60
74
|
### Hosted auth context
|
|
61
75
|
|
|
62
76
|
```ts
|