Skip to content

Commit 6268926

Browse files
committed
Expose user id from accounts module
1 parent e525bfc commit 6268926

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

module/src/auth.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ interface Subscription {
299299
};
300300

301301
interface BaseAccountData {
302+
userId?: string;
302303
email?: string;
303304
subscription?: Subscription;
304305
banned: boolean;
@@ -444,6 +445,7 @@ function parseUserData(appData: UserAppData | null): User {
444445
if (!appData) return anonUser();
445446

446447
return {
448+
userId: appData.user_id,
447449
email: appData.email,
448450
subscription: parseSubscriptionData(appData),
449451
teamSubscription: appData.team_subscription

0 commit comments

Comments
 (0)