Use client side fetching for user data (#211)

This commit is contained in:
Luke Vella 2022-06-28 12:13:49 +01:00 committed by GitHub
parent 1d768083ee
commit 368f324865
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 93 additions and 63 deletions

View file

@ -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;
};
}
}