mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-29 22:27:25 +02:00
Update login and registration (#437)
This commit is contained in:
parent
4e67254022
commit
29eb477792
56 changed files with 1788 additions and 695 deletions
|
@ -21,6 +21,17 @@ const sessionOptions: IronSessionOptions = {
|
|||
ttl: 0, // basically forever
|
||||
};
|
||||
|
||||
export type RegistrationTokenPayload = {
|
||||
name: string;
|
||||
email: string;
|
||||
code: string;
|
||||
};
|
||||
|
||||
export type LoginTokenPayload = {
|
||||
userId: string;
|
||||
code: string;
|
||||
};
|
||||
|
||||
export type RegisteredUserSession = {
|
||||
isGuest: false;
|
||||
id: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue