Questions tagged [nuxt-auth]
187 questions
0
votes
0 answers
Nuxt Auth Middleware: Can a local scheme have an endpoint which is a javascript custom function and not a axios api call
I have a need where after getting the username and password of a user, I wish to call a javascript function (which does some auth function) to confirm successful login. Would something like this be possible using the auth-module without making an…

RmR
- 1,917
- 1
- 22
- 35
0
votes
0 answers
How to enable account selection while using google auth in nuxt?
I am using following code for my Google auth setup in Nuxt in nuxt.config.js
google: {
clientId: process.env.CLIENT_ID,
codeChallengeMethod: '',
responseType: 'code',
endpoints: {
token: process.env.APP_BASE_URL +…

Bogdan Timofeev
- 1,062
- 3
- 11
- 33
0
votes
1 answer
Redirecting to Login page instead of refreshing the token in Nuxt auth
I implemeted the Nuxt auth module in my project. Now I have 2 tokens, Access token (30 minutes maxAge) and Refresh Token (8 Hours maxAge).
What I want to achieve is refresh the Access token every 30 mins using the Refresh token. After 8 hours, The…

Abdul Hadi P C
- 1
- 4
0
votes
1 answer
How do I make a lot of api calls just once without slowing down the login process using nuxt
I'm currently working on a dashboard, and need to fetch a lot of info from APIs and make the info. available. And I need them to be available as soon as a user logs-in.
I'm using nuxt-auth for authentication and login.
Currently, I fetch the data on…

payose
- 23
- 6
0
votes
0 answers
When I refresh the page in Nuxt it throws error atob is not defined
When I navigate to the page through UI, page is rendering fine but when I do refresh the page, it throws the error Reference error atob is not defined.
here is my created function on same page .
created() {
if (typeof window !== 'undefined' &&…

Ashish Khokhariya
- 207
- 2
- 13
0
votes
0 answers
Auth options in NuxtJS
I'm following a tutorial on authentication (https://strapi.io/blog/strapi-authentication-in-nuxt-js) but whenever I'm implementing auth in nuxt.config.js it throws this error in my browser
TypeError
defuWEBPACK_IMPORTED_MODULE_3 is not a…

Ahmad Takkoush
- 51
- 5
0
votes
0 answers
nuxt auth v5 not setting loggedin when use login & logout
when user logging in, the this.$auth.$state.loggedIn value stay false
and when reload the page it's work
also when user logging out, the this.$auth.$state.loggedIn value stay true
and when reload the page it's work
this is my nuxt.config.js:
auth:…

Ahmed Alakbari
- 1
- 1
0
votes
1 answer
When I use @nuxtjs/auth to login, it sends a request with a different URL than the one I specified
What we want to solve
I am using the @nuxtjs/auth' module of Nuxt.js for login authentication, but when I use the loginWith method, I get an error because it jumps to an unspecified URL instead of the URL set in config. I need to know how and why…

Beginner Professional
- 327
- 1
- 10
0
votes
0 answers
Nuxt Auth uses access token instead of refresh token
My issue is as follows:
After logging in my acces token and refresh token are stored and I can access them with this.$auth.strategy.token.get()
When my access token is expired, my app calls the /token/refresh endpoint that I created in my backend.…

Jochem
- 31
- 6
0
votes
1 answer
Nuxt Auth Local Token cookie sets logged in status to true
I am currently using Nuxt Auth for my login and session management. Everything is going smoothly. However, I have a problem with the way my set up is handling cookies. I am not sure where I went wrong. Whenever I set the auth._token.local in the…

chemical_elii
- 155
- 1
- 11
0
votes
1 answer
Nuxt auth user always null
I Just switched from development mode to production for my nuxt app.
It uses @nuxtjs/auth-next and in the development version everything use to work fine like a charm.
Today i just deployed the website to cloudflare pages, Since then the…

Gaurish
- 89
- 2
- 12
0
votes
1 answer
In Nuxt Auth, is there any way to intercept socialite callback to append XSRF-TOKEN?
My API is written using Laravel and Sanctum as the authentication handler. I use nuxt-auth to implement the login feature in the frontend. So far, it works.
The problem is, when I try to implement social login using Google, whenever I'm done…

Yura
- 1,937
- 2
- 19
- 47
0
votes
1 answer
NuxtJS - Google Auth: ExpiredAuthSessionError: Both token and refresh token have expired. Your request was aborted
Im using nuxtjs for a while. Before my last update all auth feature run smoothly.
But after I update the nuxt.config.js move axios plugin from plugins array to auth config object the error occurred. I need to put axios in auth config object because…

Ervan Prastyanto
- 23
- 3
0
votes
1 answer
Nuxt Auth using Facebook
For the time being, I'm attempting to integrate Nuxt Auth Facebook. I've already set up on my local machine, but I'm having trouble. When I click login with Facebook and it takes me to Facebook, I click continue with my Facebook, and Facebook…

Muhammad Wazexr
- 143
- 4
- 16
0
votes
0 answers
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…

Justin Abodo
- 35
- 1
- 6