D
D
Daniil Chashkov2018-08-08 15:44:21
Laravel
Daniil Chashkov, 2018-08-08 15:44:21

Authorization in laravel +vue +jwt auth?

Transferring authorization to vue, for this I googled and found the CLICK article .
I did the same as it is written there, but as it turned out, authorization and exit occur only on the client side, how to add it on the server side? And another question, how to make requests for routes that are located in routes/api.php?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Filippenko, 2018-11-01
@alexfilus

I somehow did according to this article, but then I found a simpler solution.
Laravel Passport + Nuxt/auth
https://auth.nuxtjs.org/
Yes, Nuxt is required, but authorization is out of the box, and setup is nowhere easier.
And jwt is one of the modes of operation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question