moved accounts backend to session lib

This commit is contained in:
Jonas_Jones 2025-03-07 20:27:56 +01:00
parent 10cc36000c
commit e5c9c351e7
3 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,5 @@
export const ACCOUNTS_WORKER_URL = 'https://accounts.jonasjones.dev';
export function getSessionKey() {
const match = document.cookie.match(/(^| )sessionKey=([^;]+)/);
return match ? match[2] : null;