3
respostas

Auth API já construída! Como implementar a API para authentication no Vuejs?

I have just built an api with auth and JWT. This is already working. I would like also to have a frontend with VUEJS.

The point is, how should I implement the frontend(web.php) authentication? Should I use the api? Or build another auth part for the front end?

Thanks a lot!!

3 respostas

Hey Gustavo, how are you? So, you can use the API you just build, you don't need to re-implement it all again using Vue. You can just take the data on the front-end client and send it to the server. You got it?

I hope my English is OK! hahahaha

Oi Wanderson! Tá ótimo o sei inglês cara!! kkkkk Fiquei meio perdido nessa questão por não saber se faço os projetos separados ou uso o que o laravel traz de integração com Vue.

Eu não sei como funciona a integração! Tem alguma dica nessa direção?

Documentação sempre! https://laravel.com/docs/5.5/frontend#writing-vue-components

Tem um exemplo lá de como fazer. Se ele já oferece uma forma simples, não procure outra, a não ser que tenha problemas :)

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software