mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-03 16:38:34 +02:00
Use client side fetching for user data (#211)
This commit is contained in:
parent
1d768083ee
commit
368f324865
10 changed files with 93 additions and 63 deletions
15
declarations/iron-session.d.ts
vendored
15
declarations/iron-session.d.ts
vendored
|
@ -2,16 +2,9 @@ import "iron-session";
|
|||
|
||||
declare module "iron-session" {
|
||||
export interface IronSessionData {
|
||||
user:
|
||||
| {
|
||||
id: string;
|
||||
name: string;
|
||||
email: string;
|
||||
isGuest: false;
|
||||
}
|
||||
| {
|
||||
id: string;
|
||||
isGuest: true;
|
||||
};
|
||||
user: {
|
||||
id: string;
|
||||
isGuest: boolean;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue