samedi 28 juillet 2018

Laravel passport api/user route is unauthorized

Im using laravel passport for token authentication, and axios for send requests from vuejs frontend. I can successfully login usin oauth/token url and it does return access token, refresh token and other data. But when every time i trying to access api/user route it returns me unauthorized error message. It seems bearer token is not in header but i cannot insert that token to axios header in bootstrap.js it also return error. Can anyone help.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2mNPeP9
via IFTTT

Aucun commentaire:

Enregistrer un commentaire