Questions tagged [nuxt-auth]
187 questions
0
votes
1 answer
How to access authorization token in @nuxtjs/auth
I am using nuxt js + @nuxjs/auth (4.9.1) to build a project.
The problem is when I use this.$auth.strategy.token.get() to access authorization token the error Cannot read property 'get' of undefined occur.
How can I access authorization token in…

farhad.a
- 341
- 4
- 17
0
votes
0 answers
How to set session using Nuxt-Auth?
I am trying to use Nuxt/auth, but run into problem with session saving in localStorage.
Login.vue
methods: {
sendLoginLink() {
this.$auth.loginWith('local', {
data: {
username: "test@gmail.com",
password: "testpassword"
}
…

Sergei Eensalu
- 377
- 1
- 15
0
votes
0 answers
Can I use Auth0 Lock with Nuxt.js Auth Package?
I'm currently working on a nuxt.js project than has a login with an auth0 server
I've used the nuxtjs-auth package with the auth0 package and is working fine
The problem I'm currently having is than my project is in a language not currently…

Pol
- 127
- 6
0
votes
1 answer
how can i add Authorization : "JWT " to http request ? in Nuxt.js
I am developing with Nuxtjs and using nuxtauth.
I am trying to give the content " JWT " to the Authorization of http request.
However, even if I change the string to be given by coding, "Bearer " is sent and I get a 401 error.
The formed text…

dore
- 5
- 2
0
votes
1 answer
Restrict nuxt page access by team role
I am writing a Nuxt site which will allow users to be members of a team. Each member will have a role (Member, Manager, Owner etc.) which I can return from the data source for each member (or user) as I am writing the backend here too.
How do I go…

bodger
- 1,112
- 6
- 24
0
votes
1 answer
Nuxt auth-next with keycloak CORS problem
Versions:
keycloak 12.0.2
nuxt: 2.14.6
nuxt/auth-next: 5.0.0-1622918202.e815752
Configs:
nuxt.config.js
auth: {
strategies: {
keycloak: {
scheme: '~/plugins/keycloak.js',
endpoints: {
…

WestFarmer
- 669
- 8
- 27
0
votes
0 answers
How to use Nuxt auth with a Django server to login with Google
I'm using nuxt-auth to handle my session based authentication, it works perfect with local strategy, but it has been a disaster trying to make it work with Google strategy, after solving a lot of issues (redirect_uri, challenge_code, etc), my…

Jonathan Arias
- 471
- 7
- 18
0
votes
2 answers
Issue with nuxt/auth
For auth I do use nuxt-auth, when the login is successful, I want to redirect to the main page using this.$router.push('/'), then I get a response like blank page with the following message
2021
,
// for login
…

Gabriel
- 11
- 1
0
votes
1 answer
How to send refreshToken and token both in nuxt auth module?
Here is my config:
auth: {
plugins: ['~/plugins/auth.js'],
strategies: {
local: {
scheme: 'refresh',
token: {
property: 'jwtToken',
},
refreshToken: {
property: 'refreshToken',
…

Alopwer
- 611
- 8
- 22
0
votes
1 answer
Nuxt Auth strategy doesn't fetch authentication token
I have the following authentication strategy:
auth: {
strategies: {
local: {
...,
},
google: {
clientId:
"",
responseType: "code",
endpoints: {
token:…

DaveIdito
- 1,546
- 14
- 31
0
votes
1 answer
Nuxtjs auth module - token endpoint in auth strategies configuration is never called
We have two endpoints /auth and /token. The endpoint /auth returns the authorization code that can be used when calling /token to get an access token.
Using NuxtJS the auth module became the way to go. The login process…

xetra11
- 7,671
- 14
- 84
- 159
0
votes
1 answer
How to enable Vuex in Firebase Functions when deploying Nuxt app
I'm trying to deploy a Nuxt SSR app to Firebase Functions to be served from the client and server side, everything works as expected but when trying to implement @nuxtjs/auth it works locally but not when deployed to Firebase, looking into the…

Jonathan Arias
- 471
- 7
- 18
0
votes
1 answer
Error 404 when login with nuxt auth and laravel passport
I'm authenticating with Laravel Passport and my front end has been implemented with nuxt.
I receive the following 404 error when sending a request with nuxt Auth to…

ISPOOYA
- 21
- 4
0
votes
1 answer
How to authenticate multiple api using Nuxt and nuxt-auth module
I have an application with (nuxt js using nuxt-auth) with local authentication so far (later I want to add git and google auth).
Now I need to add authentication to invoke other services / API (like google cloud rest API, payment system, youtube…

user2779840
- 63
- 2
- 11
0
votes
1 answer
How to get access_token from auth module (nuxtjs/auth-next) in nuxtjs typescript?
I have tried to use this.$auth.$state.accessToken and this.$route.query.token to get token, but they don’t include any access_token.
Also user have logged in successfully throw this.$auth.loginWith('laravelPassportPassword') Auth.
Then I tried to…

Vajiheh mrp
- 11
- 3