Ignore guys. I'll just redirect the user when token service tells token has 
expired on the next REST request. 

On Thursday, June 12, 2014 11:09:11 AM UTC-5, Neil Camara wrote:
>
> Hi folks,
>
> I just implemented a login and it connects to our backend token service 
> using Angular's factory. This is an example of the response I get from our 
> Token service.
>
>
> {"expires":1402631212747,"token":"1136a0b5-1173-47e2-8fe7-b67f0be71879","href":"
> https://api.devsvr.com/v1/users/S88RDAHJXY15HCT6"}
>
> I would like to log off a user when the expire time is reached. It's 
> currently set to 12 hours. I would like to implement the best way to kick 
> out a user. I don't want to keep on polling the backend to see if the token 
> has expired.
>
> Any help would be greatly appreciated.
>
> Thanks,
>
> Neil
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to