🐛 Fixed possible bug
This commit is contained in:
@@ -27,7 +27,7 @@ export const handle: Handle = async ({ event, resolve }) => {
|
|||||||
if (jwt) {
|
if (jwt) {
|
||||||
new_jwt = jwt[0];
|
new_jwt = jwt[0];
|
||||||
} else {
|
} 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 (
|
event.locals.email = await (
|
||||||
await fetch(`${process.env.API_URL}/api/v1/users/auth/internal/email`, {
|
await fetch(`${process.env.API_URL}/api/v1/users/auth/internal/email`, {
|
||||||
|
|||||||
Reference in New Issue
Block a user