Skip to content

Commit

Permalink
fix: auth tokens hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qamarq authored Dec 10, 2024
1 parent bca2ef2 commit a3e262a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const auth = async (tokens?: {
}
const setCookieHeaders = response.headers.getSetCookie();
setCookieHeaders.forEach((cookie) => {
const preparedCookie = cookie.replace(";", "");
const preparedCookie = cookie.split(";")[0];
const [name, value] = preparedCookie.split("=");
cookies.set({
name,
Expand Down

0 comments on commit a3e262a

Please sign in to comment.