Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

115
Views
Avoid permanent redirect to login page http://127.0.0.1:3000/login

I have a problem using nuxt/auth v4.9.1. when I logged in and I enter a URL for example http://127.0.0.1:3000/configuration/locations it redirects me to the login page http://127.0.0.1:3000/login while I I'm already logged in and my token hasn't expired yet.

Please how to avoid this redirect?

Nuxt.config.js

router: {
        middleware: ['auth']
      },
      // Auth Strategies
      auth: {
        redirect: {
            login: '/login',
            logout: false,
            callback: false,
            home: '/'
        },
        token: {
            property: 'accessToken',
            global: true,
            maxAge: 1800
        },
        refreshToken: {
            property: 'refreshToken',
            data: 'refreshToken',
            maxAge: 60 * 30
          },
        strategies: {
            local: {
                endpoints: {
                    login: { headers: { 'Content-Type': 'application/x-www-form-urlencoded'}, url:'oauth/v2/token', method: 'post', propertyName: "accessToken" },
                    refresh: { headers: { 'Content-Type': 'application/x-www-form-urlencoded'}, url: '/oauth/v2/token/refresh', method: 'post', propertyName: 'refreshToken'},
                    user: { url: 'security/users/me', method: 'get', propertyName: false}
                },
                /* user: {
                    property: 'data'
                }, */
                tokenType: 'Bearer'
            }
        }
      }

Someone to help me please?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!