Skip to content

Commit

Permalink
feat(frontend): #333 Fixed authentication timeout error
Browse files Browse the repository at this point in the history
  • Loading branch information
tholulomo committed Mar 10, 2023
1 parent 275ed82 commit 0fcc162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/store/modules/auth/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ export default {
router.push('/nm')
context.commit('setSnackbar', {
message: 'Authenticating...',
duration: 1000
duration: 3000
}, { root: true })

const token = res.token ?? null
const userId = res.userId ?? null
const displayName = res.displayName ?? null
const expiresIn = 450 * 1000
const expiresIn = 9000 * 60 * 60
const expirationDate = new Date().getTime() + expiresIn

if (token && userId && displayName) {
Expand Down

0 comments on commit 0fcc162

Please sign in to comment.