Questions tagged [nuxt-auth]

187 questions
0
votes
0 answers

nuxt-auth keep query params of redirect on login

I have a pretty basic setup using nuxt auth in a spa. Here's options: strategies: { internal: { scheme: 'auth0', ... responseType: 'code', accessType: 'offline', grantType: 'authorization_code', …
laventnc
  • 175
  • 13
0
votes
1 answer

Can you authenticate a Nuxt.js App through a Keycloak client that has a confidental access type?

I am authenticating my Nuxt App with Keycloak through the Auth Module for Nuxt.js. (https://auth.nuxtjs.org/) When the access type of my Keycloak client is set to public, everything is working as intended. Now I am trying to set the access type of…
Ocean
  • 1
  • 1
0
votes
0 answers

"Remember Me" option when logging in with Django + DRF + Djoser + Nuxt

I've got a site that uses Django as a backend and Nuxt for frontend. I'd like to implement the commonly-seen "Remember Me" checkbox when a user logs in. If unchecked, the user should only be logged in for that session and has to log in again the…
0
votes
0 answers

create strategy for nuxtjs/auth after app setup

I am using nuxt to generate a static website (nuxt generate) and added nuxt-auth for authenticate the app vs. AWS Cognito. The hosting of this site is via S§ + Cloudfront. I am also deploying an API to AWS using Lambda functions. These functions are…
thopaw
  • 3,796
  • 2
  • 17
  • 24
0
votes
0 answers
0
votes
0 answers

Nuxt: Redirect to Google login without pressing a "Login with Google" Button

I'm trying to implement a google login only Nuxt App. When the user is not authenticated, the app should automatically be redirected to the google login page and should afterwards be redirected to the restricted page. My scheme looks like…
pipo92
  • 119
  • 10
0
votes
0 answers

Nuxt Firebase Cannot use with Another plugin

I use @nuxtjs/firebase and work completely with auth function this.$fire.auth .signInWithEmailAndPassword(this.form.email, this.form.password) .then((userCredential) => {} and it doesn't work when add another plugins in nuxt.config …
0
votes
0 answers

Nuxt auth with laravel sanctum working only on local

I am trying to authenticate with laravel/sanctum on my nuxtjs front. I have set everything up properly, as showed in documentation, and it works perfectly on my local machine. However, when I push it to live (I am using heroku) it just doesn't…
Nulavel
  • 1
  • 1
0
votes
0 answers

Nuxt auth module two user requests

currently I'm facing a weird problem with nuxt auth. My config looks like this: auth: { strategies: { google: { clientId: '', codeChallengeMethod: '', responseType: 'code', token: { …
pipo92
  • 119
  • 10
0
votes
1 answer

Nuxt JS auth.user object empties after refreshing the page

I have created a nuxt application and i have a laravel server for the APIs. On login, the response returns the user object, and auth token. So once login, the $auth.user is set to the user object. The moment i refresh, $auth.user is set to {}, while…
0
votes
1 answer

Clear query params in Nuxt Auth on redirect

Query params aren't removed when user is being redirected to one of defined redirect paths (login, home, etc). For example - user isn't logged in and tries to open some protected page example.com/some-protected-page?test=query. Then user will be…
linnloss
  • 66
  • 1
  • 3
0
votes
1 answer

How do I login a user using nuxt auth's loginWith() function?

I am creating an application that uses nuxt as frontend and an expressjs api as backend. JWT token authentication is working in backend and I am now trying to register a user from the frontend and log him in using Nuxt auth's loginWith(). When I try…
Lucas
  • 11
  • 2
0
votes
1 answer

NuxtJS auth module cannot resolve user path

I am currently integrating the nuxt auth module into my application and when I run npm run dev I am facing a fatal error Cannot resolve "user" from "C:\ ...\user" at Resolver.resolvePath (node_modules@nuxt\core\dist\core.js:347:11) at…
0
votes
1 answer

Nuxt 2 Bridge Composition API: how to access context (such as `$auth`)?

With Nuxt 2 I could do How do I change this to Nuxt 2 Bridge Composition…
thisismydesign
  • 21,553
  • 9
  • 123
  • 126
0
votes
2 answers

How can I log in as a user with nuxt.auth?

I currently have the following nuxt.auth configuration. auth: { strategies: { cookie: { endpoints: { login: { url: '/api/login', method: 'post' }, }, }, }, }, When login is ok, the response is in json format with the…
Tlaloc-ES
  • 4,825
  • 7
  • 38
  • 84