devondahon
4 months ago
237
1
Laravel

Should I register my SPA user with a token ?

Posted 4 months ago by devondahon

Currently, a user in my Nuxt SPA is registered with this method:

    async register() {
      await this.$axios
        .$post('http://backend.test/api/register', {
          name: 'me',
          email: '[email protected]',
          password: '[email protected]'
        })
        .then((res) => {
          console.log(res)
        })
    },

My backend is set with Laravel Passport and I'm using Password Grant Token to register a user.

Should I register users with a Passport token or is it unnecessary ?

Please sign in or create an account to participate in this conversation.