@asgardeo/javascript 0.2.17 → 0.4.0

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.
@@ -17,7 +17,8 @@
17
17
  */
18
18
  export declare enum EmbeddedFlowType {
19
19
  Authentication = "AUTHENTICATION",
20
- Registration = "REGISTRATION"
20
+ Registration = "REGISTRATION",
21
+ UserOnboarding = "USER_ONBOARDING"
21
22
  }
22
23
  export interface EmbeddedFlowExecuteRequestPayload {
23
24
  actionId?: string;
@@ -18,10 +18,10 @@
18
18
  import { IdToken } from '../models/token';
19
19
  /**
20
20
  * Removes standard protocol-specific claims from the ID token payload
21
- * and returns a camelCased object of user-specific claims.
21
+ * and returns an object of user-specific claims with original attribute names preserved.
22
22
  *
23
23
  * @param payload The raw ID token payload.
24
- * @returns A cleaned-up, camelCased object containing only user-specific claims.
24
+ * @returns A cleaned-up object containing only user-specific claims with original attribute names.
25
25
  *
26
26
  * @example
27
27
  * ````typescript
@@ -30,13 +30,15 @@ import { IdToken } from '../models/token';
30
30
  * aud: 'client_id',
31
31
  * exp: 1712345678,
32
32
  * iat: 1712345670,
33
- * email: 'user@example.com'
33
+ * email: 'user@example.com',
34
+ * given_name: 'John'
34
35
  * };
35
36
  *
36
37
  * const userClaims = extractUserClaimsFromIdToken(idTokenPayload);
37
- * // // userClaims will be:
38
+ * // userClaims will be:
38
39
  * // {
39
- * // email: 'user@example.com'
40
+ * // email: 'user@example.com',
41
+ * // given_name: 'John'
40
42
  * // }
41
43
  * ```
42
44
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/javascript",
3
- "version": "0.2.17",
3
+ "version": "0.4.0",
4
4
  "description": "Framework agnostic JavaScript SDK for Asgardeo.",
5
5
  "keywords": [
6
6
  "asgardeo",