Questions tagged [nuxt-auth]
187 questions
0
votes
1 answer
What should be the type of state in pinia store using nuxt
I am using pinia with nuxt and typescript to create stores.
This is code of auth store (with nuxt auth module) -
import { defineStore } from 'pinia';
export const useAuthStore = defineStore('authStore', {
getters: {
isAuthenticated(state) {
…

Monu Sharma
- 1
- 2
0
votes
1 answer
Nuxtjs Auth module with Laravel Sanctum Provider
I have integrated the nuxt/auth module with the Laravel Sanctum provider and the login works fine, the problem is when I want to remember the user.
I sent to the api a boolean parameter with the name remember and in the api the option remember is…

IvanG11
- 92
- 4
0
votes
1 answer
How to use nuxtjs auth middleware with backed accepting querystring
I have example backend which issues JWT token but it is accepting username and password in query string.
I'm trying to use Nuxt JS auth middleware, how can I send username and password in querystring?
login: {
url:…

kanna
- 1,412
- 1
- 15
- 33
0
votes
0 answers
Getting user credetials with the auth module
I note that with the auth module, after a successful log in, it hits a /user endpoint to get user information.
The documentation states that you can remove this extra request by changing the configuration, and returning the user information in the…

panthro
- 22,779
- 66
- 183
- 324
0
votes
2 answers
How logout user when one of APIs responds Unauthorized 401 (Nuxt-Auth)
How logout user when one of APIs responds Unauthorized 401 with Nuxt-Auth?
I use AXIOS & built-in functions of Nuxt-Auth for requests
My nuxt-config settings for nuxt-auth:
auth: {
redirect: {
login: '/login',
…

Mehdi Rafiee
- 89
- 2
- 12
0
votes
0 answers
@nuxtjs/auth-next doesn't consume the token returned by cognito
I am having a problem with the @nuxtjs/auth-next module for connecting via Cognito. It does send me to my cognito login portal and redirects me with to my app with my token value, and type.
However the module doesn't consume it, it doesnt say that I…

Jimichou
- 1
- 1
0
votes
0 answers
How to configure settings of nuxt-auth when my backend is strapi?
Currently I'm working on a login-system in my Nuxt app that has Strapi in the back-end of itself. I used nuxt-auth local schemes for my login-system, and followed this article for making that. unfortunately the version of "Strapi", "Nuxt" and…

hamid-davodi
- 1,602
- 2
- 12
- 26
0
votes
1 answer
How does nuxt-auth cookie checks the backend?
I am trying to create a restricted area where logged in users would need to input a code to access it.
I'm using laravel sanctum and nuxt(ssr) with nuxt-auth module. I'm trying to understand how nuxt-auth module is checking the backend if a user is…

grimdbx
- 175
- 2
- 12
0
votes
1 answer
Nuxt Auth gives error after login complete via modal
I am using nuxt-auth for my project in which I am using a modal for login purpose but after the login is done I get the following
error
I tried looking into the error in depth and found that there is a auth/auth.js file in .nuxt in which there is a…

Ankit Chaudhari
- 1
- 1
0
votes
0 answers
nuxt auth, user is logged out after refresh
I'm creating an app using nuxt (2.15.8) and i'm using the @nuxtjs/auth (4.9.1) for authentication. I use local strategy to login users
auth: {
redirect: {
login: '/login',
logout: false,
home: false
},
strategies: {
…

gogo_rulez
- 389
- 2
- 10
- 24
0
votes
0 answers
Configure frontend to use B2C for authentication (in NuxtJS)
I'm stack in my very first task of my very first job as Front-End developer, I know I am hindered, but I hope you will be able to help me.
My task is the same as in the title, to configure the frontend to use b2c for authentication, I don't have to…

Tiberius
- 73
- 6
0
votes
0 answers
Nuxt component variable not updated
I wrote the following code for my navbar:

Sander Bakker
- 435
- 1
- 4
- 14
0
votes
1 answer
Nuxt Auth: Check if route is protected?
Using Nuxt-Auth, is there an official way to check if a route is protected (ie requires login)?
In some sample middleware, doing a console log of "route" shows a large JSON payload with some mentions of middleware: 'auth'. However how reliable is…

Kalnode
- 9,386
- 3
- 34
- 62
0
votes
0 answers
how to get token value in NuxtAuth v.4?
how can i get token value in NuxtAuth v.4.9 ?
i have used this code
and tis code give me this in console .
BUT i cant get token if i write
var token = this.$auth.$storage._state._token.local
so , How can i get Token Value ??
also , how can i…

morteza mortezaie
- 1,002
- 14
- 37
0
votes
0 answers
How to fix nuxt auth page reload problem?
When I log in with nuxt auth, I redirect the user to his profile page. But after reload on the profile page I get an error like the screenshot:
I have searched this problem related to @nuxtjs/auth-next ssr problem. Most of the solution is to…

Ahmed Shakil
- 31
- 1
- 4