Skip user details step for logged in users (#602)

This commit is contained in:
Luke Vella 2023-03-23 12:17:56 +00:00 committed by GitHub
parent f858bcc5f4
commit d8e3dcd357
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 548 additions and 636 deletions

View file

@ -35,10 +35,6 @@ export type LoginTokenPayload = {
code: string;
};
export type EnableNotificationsTokenPayload = {
adminUrlId: string;
};
export type RegisteredUserSession = {
isGuest: false;
id: string;
@ -51,6 +47,11 @@ export type GuestUserSession = {
id: string;
};
export type DisableNotificationsPayload = {
pollId: string;
watcherId: number;
};
export type UserSession = GuestUserSession | RegisteredUserSession;
const setUser = async (session: IronSession) => {