Skip to content

Conversation

@vitalii-kyryliuk
Copy link

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
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
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
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.

3 participants