Skip to content

Commit

Permalink
Merge pull request #284 from UofA-Blueprint/hotfix
Browse files Browse the repository at this point in the history
Hotfix for session-token
  • Loading branch information
royayush1 authored Jan 23, 2024
2 parents c432757 + 065857c commit 168d532
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/contexts/AuthContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export function AuthProvider({ children }) {

const { data } = res
setSessionToken(data.session)
Cookies.set('session-token', data.session, { expires: 1 / 24 })
const newUser = data?.user
if (newUser !== currentUser) {
setCurrentUser({
Expand Down

0 comments on commit 168d532

Please sign in to comment.