samedi 28 mai 2016

angular laravel handle token expiracy

So, I'm using angularJs and laravel with tymon-JWTAuth and sattelite.

Everything so good so far but I wanted to match the sessionStorage token to expire the session on the laravel side.

How is this achievable since sessionStorage cant set Expiracy.

And if possible, how can I redirect to login if a $http request has the error 401 token_expired ?

Best regards,

Filipe



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1TMOIea
via IFTTT

Aucun commentaire:

Enregistrer un commentaire