mirror of
https://github.com/tale/headplane.git
synced 2026-07-26 15:58:14 +00:00
fix: don't throw when session manager isn't available
This commit is contained in:
@@ -24,7 +24,7 @@ type SessionStore = SessionStorage<SessionData, SessionFlashData>;
|
||||
let sessionStorage: SessionStore | null = null;
|
||||
export function initSessionManager() {
|
||||
if (sessionStorage) {
|
||||
throw new Error('Session manager already initialized');
|
||||
return;
|
||||
}
|
||||
|
||||
sessionStorage = createCookieSessionStorage<SessionData, SessionFlashData>({
|
||||
|
||||
Reference in New Issue
Block a user