forked from phenom/healer-man
Release Healer Man 0.1.5
This commit is contained in:
1 parent
f4c9cf356c
commit
55cfd43d66
62 files changed
+3030
-153
No files matched your search
@@ -374,7 +374,11 @@ export function restoreSession(storage: StorageLike | null = browserSessionStora
|
||||
if (session.kind === "account"
|
||||
&& typeof session.accessToken !== "string"
|
||||
&& !readDatabase().accounts.some((account) => account.id === session.ownerId)) return null;
|
||||
return session as PlayerSession;
|
||||
return {
|
||||
...(session as PlayerSession),
|
||||
// Session storage is client-controlled. /api/me re-derives online roles.
|
||||
roles: [],
|
||||
};
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user