@drmhse/sso-sdk 0.2.9 → 0.3.1
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 +4 -4
- package/dist/index.d.mts +618 -350
- package/dist/index.d.ts +618 -350
- package/dist/index.js +253 -29
- package/dist/index.mjs +253 -29
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AuthOS SDK
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@drmhse/sso-sdk)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
|
|
6
|
-
A zero-dependency, strongly-typed TypeScript SDK for the multi-tenant
|
|
6
|
+
A zero-dependency, strongly-typed TypeScript SDK for AuthOS, the multi-tenant authentication platform.
|
|
7
7
|
|
|
8
8
|
**[View Full Documentation →](https://drmhse.com/docs/sso/)**
|
|
9
9
|
|
|
@@ -292,7 +292,7 @@ sso.onAuthStateChange((isAuthenticated) => {
|
|
|
292
292
|
|
|
293
293
|
## Platform Administration
|
|
294
294
|
|
|
295
|
-
For platform owners managing
|
|
295
|
+
For platform owners managing AuthOS:
|
|
296
296
|
|
|
297
297
|
```typescript
|
|
298
298
|
// Approve pending organization
|
|
@@ -344,7 +344,7 @@ const login = async (credentials: LoginPayload): Promise<RefreshTokenResponse> =
|
|
|
344
344
|
|
|
345
345
|
## Validating JWTs in Your Backend
|
|
346
346
|
|
|
347
|
-
|
|
347
|
+
AuthOS uses RS256 (asymmetric) JWT signing. Your backend can validate tokens without sharing secrets:
|
|
348
348
|
|
|
349
349
|
```typescript
|
|
350
350
|
// Fetch JWKS from the SSO platform
|