Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

95
Vistas
XML Parsing Error: not well-formed Location: http://localhost:3000/_auth/laravelPassportPassword/token Line Number 1, Column 1

I am using nuxt js along with laravel passport. when I logged in it logged in successfully but it shows the above error and on refresh, it redirects to the login.

In my login.vue

methods: {
    async login() {
      this.error = null;
      await this.$auth
        .loginWith("laravelPassportPassword", { data: this.form })
        .then((response) => this.$router.push("/"))
        .catch((error) => (this.error = error.response.data.message));
    },
  },

In my nuxt.config.js

auth: {
        redirect: {
            home: '/',
        },
        strategies: {
            laravelPassportPasswordGrant: {
                name: 'laravelPassportPassword',
                provider: 'laravel/passport',
                url: '/backend',
                endpoints: {
                    logout: '/api/logout',
                    user: {
                        url: '/api/user',
                    },
                },
                clientId: process.env.PASSPORT_CLIENT_ID,
                clientSecret: process.env.PASSPORT_CLIENT_SECRET,
                grantType: 'password',
            },
        }
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda