@mitreka/coreflow-types 0.0.24 → 0.0.25
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/auth.ts +14 -0
- package/package.json +1 -1
package/auth.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BaseEntity } from "./entity.js";
|
|
2
2
|
import type { BaseEntityFilters, QueryFilters } from "./filter.js";
|
|
3
|
+
import type { UserGender } from "./user.js";
|
|
3
4
|
|
|
4
5
|
export type AccessToken = {
|
|
5
6
|
iss: string; // issuer
|
|
@@ -81,7 +82,17 @@ export type IDToken = {
|
|
|
81
82
|
aud: string; // Client ID
|
|
82
83
|
sub: string; // User ID
|
|
83
84
|
name?: string;
|
|
85
|
+
given_name?: string;
|
|
86
|
+
family_name?: string;
|
|
87
|
+
nickname?: string;
|
|
84
88
|
email?: string;
|
|
89
|
+
email_verified?: boolean;
|
|
90
|
+
phone_number?: string;
|
|
91
|
+
phone_number_verified?: boolean;
|
|
92
|
+
address?: string;
|
|
93
|
+
birthdate?: string;
|
|
94
|
+
gender?: string;
|
|
95
|
+
picture?: string;
|
|
85
96
|
iat: number;
|
|
86
97
|
exp: number;
|
|
87
98
|
};
|
|
@@ -202,9 +213,12 @@ export type UserAccount = {
|
|
|
202
213
|
export type UserIdentity = {
|
|
203
214
|
company_id: string;
|
|
204
215
|
email: string;
|
|
216
|
+
gender: string;
|
|
205
217
|
jti: string;
|
|
206
218
|
name: string;
|
|
207
219
|
user_id: string;
|
|
220
|
+
address?: string;
|
|
221
|
+
phone?: string;
|
|
208
222
|
}
|
|
209
223
|
|
|
210
224
|
export type UserSession = {
|