Skip to content

DBI-620 P1 401s accesstoken # store expiry date#104

Open
vitalii-kyryliuk wants to merge 1 commit intomasterfrom
dbi-620
Open

DBI-620 P1 401s accesstoken # store expiry date#104
vitalii-kyryliuk wants to merge 1 commit intomasterfrom
dbi-620

Conversation

@vitalii-kyryliuk
Copy link
Copy Markdown

Store token expiry date in vuex to make it possible to check it before requests are made

import middleware from '@@/.nuxt/middleware'

// ToDo: TTL hardcoded
const TOKEN_TIME_TO_LIVE = 2 * 60 * 1000 // 2 minutes
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this value coming from?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably come from identity service, for now token lives 2min, usually should be 2h

@mawaha
Copy link
Copy Markdown
Contributor

mawaha commented Sep 28, 2022

Where is the expiry data being pulled/checked from the store?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants