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…
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