Skip to content

maxAge is not working #1513

Discussion options

You must be logged in to vote

I have a similar problem in a universal app using session cookie authentication. Setting the maxAge option just modifies the cookie maxAge/ExpiryDate not the cookie value; therefore, it is not possible to set a session duration longer than 30 minutes.

"@nuxtjs/auth-next": "5.0.0-1624817847.21691f1",
"nuxt": "^2.15.7"

I used a custom refresh scheme and I define cookie value after login and refresh manually.

nuxt.config: scheme: '~/schemes/customRefresh.js',

customRefresh.js:

import { RefreshScheme } from '~auth/runtime'

export default class CustomScheme extends RefreshScheme {
  refreshTokens() {
    const self = this
    // Refresh endpoint is disabled
    if (!this.options.endpoints…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by halilyuce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants
Converted from issue

This discussion was converted from issue #1258 on January 20, 2022 10:38.