mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(frontend): 🎨 Change glitch-soc cookie name to _session_id
This commit is contained in:
parent
866cd4345d
commit
8fc725639c
2 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ export const handleGlitchRequest = async (
|
|||
let path = url.pathname;
|
||||
const accessToken = req.headers
|
||||
.get("Cookie")
|
||||
?.match(/_mastodon_session=(.*?)(;|$)/)?.[1];
|
||||
?.match(/_session_id=(.*?)(;|$)/)?.[1];
|
||||
const user = await retrieveUserFromToken(accessToken ?? "");
|
||||
|
||||
// Strip leading /web from path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue