@logto/js 6.0.0 → 6.1.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.
- package/lib/consts/openid.d.ts +6 -0
- package/lib/consts/openid.js +8 -0
- package/package.json +1 -1
package/lib/consts/openid.d.ts
CHANGED
|
@@ -38,6 +38,12 @@ export declare enum UserScope {
|
|
|
38
38
|
* See {@link idTokenClaims} for mapped claims in ID Token and {@link userinfoClaims} for additional claims in Userinfo Endpoint.
|
|
39
39
|
*/
|
|
40
40
|
Phone = "phone",
|
|
41
|
+
/**
|
|
42
|
+
* Scope for user address.
|
|
43
|
+
*
|
|
44
|
+
* See {@link idTokenClaims} for mapped claims in ID Token and {@link userinfoClaims} for additional claims in Userinfo Endpoint.
|
|
45
|
+
*/
|
|
46
|
+
Address = "address",
|
|
41
47
|
/**
|
|
42
48
|
* Scope for user's custom data.
|
|
43
49
|
*
|
package/lib/consts/openid.js
CHANGED
|
@@ -40,6 +40,12 @@ var UserScope;
|
|
|
40
40
|
* See {@link idTokenClaims} for mapped claims in ID Token and {@link userinfoClaims} for additional claims in Userinfo Endpoint.
|
|
41
41
|
*/
|
|
42
42
|
UserScope["Phone"] = "phone";
|
|
43
|
+
/**
|
|
44
|
+
* Scope for user address.
|
|
45
|
+
*
|
|
46
|
+
* See {@link idTokenClaims} for mapped claims in ID Token and {@link userinfoClaims} for additional claims in Userinfo Endpoint.
|
|
47
|
+
*/
|
|
48
|
+
UserScope["Address"] = "address";
|
|
43
49
|
/**
|
|
44
50
|
* Scope for user's custom data.
|
|
45
51
|
*
|
|
@@ -78,6 +84,7 @@ const idTokenClaims = Object.freeze({
|
|
|
78
84
|
[UserScope.Profile]: ['name', 'picture', 'username'],
|
|
79
85
|
[UserScope.Email]: ['email', 'email_verified'],
|
|
80
86
|
[UserScope.Phone]: ['phone_number', 'phone_number_verified'],
|
|
87
|
+
[UserScope.Address]: [],
|
|
81
88
|
[UserScope.Roles]: ['roles'],
|
|
82
89
|
[UserScope.Organizations]: ['organizations'],
|
|
83
90
|
[UserScope.OrganizationRoles]: ['organization_roles'],
|
|
@@ -91,6 +98,7 @@ const userinfoClaims = Object.freeze({
|
|
|
91
98
|
[UserScope.Profile]: [],
|
|
92
99
|
[UserScope.Email]: [],
|
|
93
100
|
[UserScope.Phone]: [],
|
|
101
|
+
[UserScope.Address]: [],
|
|
94
102
|
[UserScope.Roles]: [],
|
|
95
103
|
[UserScope.Organizations]: [],
|
|
96
104
|
[UserScope.OrganizationRoles]: [],
|