🐛 Fixed possible bug

This commit is contained in:
Mawoka
2022-09-09 11:21:31 +02:00
parent 2ab9d14d3e
commit 7b42459e8f
+1 -1
View File
@@ -27,7 +27,7 @@ export const handle: Handle = async ({ event, resolve }) => {
if (jwt) {
new_jwt = jwt[0];
} else {
new_jwt = cookie.parse(res.headers.get('set-cookie')).access_token;
new_jwt = cookie.parse(res.headers.get('set-cookie') ?? '').access_token;
}
event.locals.email = await (
await fetch(`${process.env.API_URL}/api/v1/users/auth/internal/email`, {