Skip to content

"expires" attribute in session changes #1073

Answered by balazsorban44
MehediH asked this question in Help
Discussion options

You must be logged in to vote

Hi there! The expires property of session means when the next-auth session expires, not the Spotify access token's expiry date. When you read the session, the expiry date will be refreshed automatically, to keep the session active. I ncase the session is not invoked, it will expire (by default, after 30 days) you can override this with the maxAge property of the session option

https://next-auth.js.org/configuration/options#session

Keep in mind that right now, refresh tokens are not utilized to keep access tokens valid, it can be implemented in user land.

You can get the idea from here: #871 (comment)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MehediH
Comment options

Answer selected by balazsorban44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants