fix: actually remove the post token

This commit is contained in:
dusk 2025-02-07 07:07:36 +03:00
parent f474176dc9
commit 5591a5263e
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw

@ -69,6 +69,7 @@ export async function load({ url, cookies }) {
scopedCookies.set("sendError", "invalid post token! this is either a bug or you should stop doing silly stuff")
redirect(303, callbackUrl)
}
postTokens.update((set) => { set.delete(postAuth); return set })
// post entry
try {
// return error if content was not set or if empty