Questions tagged [nuxt-auth]

187 questions
0
votes
0 answers

OAuthCallback error on Netlify using sidebase/nuxt-auth@0.5.0 when loging with Google/Facebook provider

After deploying my Nuxt@3.5.3 application using @sidebase/nuxt-auth@0.5.0 to Netlify I got the OAuthCallback error when trying to log in using Google/Facebook provider. On localhost everything works fine. The documentation says: "You must set the…
sunergos
  • 129
  • 2
  • 14
0
votes
1 answer

How to store user date in Pinia Store? With @sidebase/nuxt-auth 0.6.0 and "local" provider?

I'm rebuilding legacy Nuxt 2, Vue 2, Vuex code using Nuxt 3, Vue 3 and Pinia. I'm using @sidebase/nuxt-auth 0.6.0 (beta) "local" provider for the user authorisation. I am able to login/logout the user etc. My problem is with getting access to the…
Jeroen
  • 1
  • 2
0
votes
0 answers

the redirection to the login page is happening even after setting the token and fetching the user

I want embed a website and use parent token to auto login an embedded web. I use nuxt2 and vuex async nuxtClientInit({ commit, dispatch }, { $auth }) { const jwtToken = 'parent_token' if (jwtToken) { try { // Set the token await…
0
votes
0 answers

After the login not redirecting to the pointed route in NuxtJs

My application is using Nuxtjs 2(2.15.6) and I have updated the nuxt auth version from V4.9.1 to V5 due to the refresh token issue.(I have got the Nuxt server page issue due to the token is not refreshing when the user logged in and close the…
0
votes
1 answer

How to solve 400 bad request error in my nuxt-strapi app?

I was working on a nuxt-strapi app 3 month ago. After 3 month delay, I decided to continue the project. In my app I have an Authentication system that uses nuxt-auth. The registration process works fine before. But now, it shows me errors in…
hamid-davodi
  • 1,602
  • 2
  • 12
  • 26
0
votes
0 answers

Cannot start nuxt: Cannot read property 'options' of undefined - Nuxt3

Getting Error while Migrating Nuxt 2 to Nuxt 3 with nuxt-auth but showing error in axios/lib. ` ERROR Cannot start nuxt: Cannot read property 'options' of undefined 12:46:12 PM at axiosModule…
0
votes
1 answer

Get token from Laravel in Nuxt 3 authorization process using sidebase/nuxt-auth and GoogleProvider

I'm using nuxt 3.2.3 with @sidebase/nuxt-auth 0.5.0-rc.0 for authorization. I defined Google Provider this way: ... GoogleProvider.default({ clientId: 'secret.apps.googleusercontent.com', clientSecret: 'secret', token: { url:…
sunergos
  • 129
  • 2
  • 14
0
votes
0 answers

Nuxt v2.10.2 auth middleware quest not work

For some reason middleware doesn't work for me, including asyncData custom middlwhere nuxt.config.js auth: { redirect: { login: '/auth/login', logout: false, callback: '/auth/login', home:…
0
votes
0 answers

Login with google using @nuxtjs/auth-next

I am using "@nuxtjs/auth-next": "5.0.0-1667386184.dfbbb54" for the authentication. I have setup following strategy in nuxt.config.js google: { scheme: 'oauth2', endpoints: { authorization:…
Daewon27
  • 1
  • 1
0
votes
0 answers

Nuxt.js is using the wrong authentication data on server side renders

I am not entirely sure what / how this is happening but I am having an issue with my Nuxt.js (Nuxt 2 more specifically) application using Laravel Sanctum as the auth provider. The application is a sort of dashboard, which is behind a user…
0
votes
0 answers

Nuxt auth module authenticates even get error 401 from backend

I'm on "@nuxt": "2.15.8" and "@nuxtjs/auth": "^4.9.1" . I don't know what happened recently but a block of codes that was working perfectly, now has some major issue!! async login(payload){ try{ let res = await this.$auth.loginWith('local',{…
Mojtaba Barari
  • 1,127
  • 1
  • 15
  • 49
0
votes
2 answers

CSRF token mismatch Laravel 10 & NuxtJS

My main problem for my setup is that I can't make requests with axios. Always getting 419 for CSRF token mismatch, don't know what to do, looked every article on google, example request with axios: methods: { async register() { await…
Rokas
  • 199
  • 1
  • 8
0
votes
0 answers

Using dynamic cookie domains with Nuxt auth

I am trying to create a single front-end site which will serve many (unlimited) domains but I'm struggling to get Nuxt auth to work with the different domains that might be used. In other projects, I have set up Nuxt auth like this:- // Auth…
bodger
  • 1,112
  • 6
  • 24
0
votes
1 answer

Nuxt-auth module (Cannot read properties of undefined (reading 'Authorization'))

guys! I have a problem with @nuxtjs/auth-next module. It's been working fine, until today. I don't know what happened to it, but it throws me an error: TypeError: Cannot read properties of undefined (reading 'Authorization') at…
Creoad
  • 11
  • 3
0
votes
1 answer

How to use refresh_token in @nuxtjs/auth-next?

I'm sorry if there are any mistakes because my native language is not English. I'm using this module with the configuration below, but when I run auth/rerfresh it's requesting using the access_token. I get the Authorization header on the server…
oosato
  • 1
  • 1