@opencampus/ocid-connect-js 2.0.5 → 2.0.7
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 +2 -1
- package/dist/ocid-connect-js.js +428 -220
- package/dist/ocid-connect-js.js.map +1 -1
- package/lib/react/LoginButton.d.ts +2 -1
- package/lib/react/LoginButton.js +12 -11
- package/lib/react/LoginCallBack.js +19 -19
- package/lib/react/OCConnect.js +8 -9
- package/lib/react/OCContext.js +1 -2
- package/lib/react/{OCSpinner.css → OCSpinner.xyz.css} +3 -3
- package/lib/sdk/auth.d.ts +4 -5
- package/lib/sdk/auth.js +100 -49
- package/lib/sdk/crypto/verifyToken.js +11 -14
- package/lib/sdk/lib/AirKitServiceManager.d.ts +4 -0
- package/lib/sdk/lib/AirKitServiceManager.js +237 -0
- package/lib/sdk/lib/AuthInfoManager.d.ts +1 -0
- package/lib/sdk/lib/AuthInfoManager.js +6 -0
- package/lib/sdk/lib/TokenManager.js +36 -38
- package/lib/sdk/lib/WalletServiceManager.d.ts +16 -0
- package/lib/sdk/lib/WalletServiceManager.js +146 -0
- package/lib/sdk/utils/prepareTokenParams.js +11 -14
- package/package.json +3 -2
- package/CHANGELOG.md +0 -59
package/README.md
CHANGED
|
@@ -357,7 +357,7 @@ Main Methods of Auth SDK
|
|
|
357
357
|
|
|
358
358
|
| Method | Description |
|
|
359
359
|
| --- | --- |
|
|
360
|
-
| signInWithRedirect | Initialize login process. Accept "state" as an input |
|
|
360
|
+
| signInWithRedirect | Initialize login process. Accept "state" & "emailPlaceholder" as an input |
|
|
361
361
|
| handleLoginRedirect | Return the auth state of the login process |
|
|
362
362
|
| getAuthState | Return auth state data { accessToken, idToken, OCId, ethAddress, isAuthenticated } |
|
|
363
363
|
| getStateParameter() | Return the state that was initialized in signin process |
|
|
@@ -371,6 +371,7 @@ import { OCAuthSandbox } from '@opencampus/ocid-connect-js';
|
|
|
371
371
|
const authSdk = new OCAuthSandbox()
|
|
372
372
|
await authSdk.signInWithRedirect( {
|
|
373
373
|
state: 'opencampus',
|
|
374
|
+
emailPlaceholder: 'test@test.com'
|
|
374
375
|
});
|
|
375
376
|
```
|
|
376
377
|
|