I have developed a rest API with laravel 5.8 using passport, to use what I do is first I make a call where I authenticate and the api in case correct returns the token.
Now I want to do a frontal, since until now I have only developed the backend, and I have two very basic doubts.
On the front I have not found a clear example to access an api rest with laravel. The second question is, once logged in, should I save the token in session? Since in every call to the api I must send it truth? In angular this as it "calls" I do not find it doing searches in google because I do not know how to "search" this process.
Thank you
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire