Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

92
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!