@alien_org/sso-sdk-core 1.0.16 → 1.0.17

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.
Files changed (2) hide show
  1. package/README.md +83 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,83 @@
1
+ # @alien_org/sso-sdk-core
2
+
3
+ Core TypeScript client for [Alien SSO](https://alien.org) authentication. Provides OIDC-compatible authentication with blockchain and TEE backing.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @alien_org/sso-sdk-core
9
+ ```
10
+
11
+ ## Features
12
+
13
+ - ✅ **TypeScript-first** with full type safety
14
+ - ✅ **Runtime validation** via Zod schemas
15
+ - ✅ **PKCE support** for secure authorization
16
+ - ✅ **Dual exports**: ESM and CJS
17
+ - ✅ **Zero UI dependencies** - use in any JavaScript environment
18
+ - ✅ **Storage management** for tokens and session data
19
+
20
+ ## Documentation
21
+
22
+ 📚 **Full documentation at [dev.alien.org/docs](https://dev.alien.org/docs)**
23
+
24
+ - **[Integration Guide](https://dev.alien.org/docs/sso-guide/core-integration)** - Complete integration walkthrough
25
+ - **[API Reference](https://dev.alien.org/docs/sso-api-reference/api-reference-core)** - Detailed API documentation
26
+ - **[What is Alien Session?](https://dev.alien.org/docs/what-is-alien-session)** - Session architecture explained
27
+ - **[Demo App](https://dev.alien.org/docs/sso-demo-app)** - Example application
28
+
29
+ ### React Integration
30
+
31
+ If you're using React, check out [@alien_org/sso-sdk-react](https://www.npmjs.com/package/@alien_org/sso-sdk-react) for hooks and pre-built components:
32
+
33
+ ```bash
34
+ npm install @alien_org/sso-sdk-react
35
+ ```
36
+
37
+ ## Authentication Flow
38
+
39
+ 1. **Generate deeplink** → Display QR code or redirect
40
+ 2. **User authenticates** in Alien mobile app
41
+ 3. **Poll for completion** → Get authorization code
42
+ 4. **Exchange code** → Receive access token
43
+ 5. **Verify token** → Validate with server (optional)
44
+
45
+ ## Storage
46
+
47
+ The SDK uses browser storage for session management:
48
+
49
+ - **localStorage**: `alien-sso_access_token` - Access token
50
+ - **sessionStorage**: `alien-sso_code_verifier` - PKCE code verifier
51
+
52
+ ## Getting a Provider Address
53
+
54
+ Register your application at the [Developer Portal](https://dev.alien.org/dashboard) to get your provider credentials.
55
+
56
+ ## TypeScript Support
57
+
58
+ Includes full TypeScript declarations with Zod runtime validation:
59
+
60
+ ```typescript
61
+ import type {
62
+ AlienSsoClientConfig,
63
+ AuthorizeResponse,
64
+ PollResponse,
65
+ ExchangeCodeResponse,
66
+ TokenInfo
67
+ } from '@alien_org/sso-sdk-core';
68
+ ```
69
+
70
+ ## Browser Support
71
+
72
+ - Modern browsers with ES2020+ support
73
+ - Chrome, Firefox, Safari, Edge (latest versions)
74
+
75
+ ## License
76
+
77
+ MIT
78
+
79
+ ## Links
80
+
81
+ - [Documentation](https://dev.alien.org/docs)
82
+ - [GitHub Repository](https://github.com/alien-org/sso-sdk-js)
83
+ - [NPM Package](https://www.npmjs.com/package/@alien_org/sso-sdk-core)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alien_org/sso-sdk-core",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/alien-id/sso-sdk-js.git"