# How to handle session logout in angular application

**URL:** <https://forum.keycloak.org/t/how-to-handle-session-logout-in-angular-application/17314>\
**Category:** Getting advice\
**Created:** [September 9, 2022, 4:19am UTC](https://forum.keycloak.org/t/how-to-handle-session-logout-in-angular-application/17314 "2022-09-09T04:19:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mnolasco](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/mnolasco/32/6519_2.png) [@mnolasco](https://forum.keycloak.org/u/mnolasco)\
**Post date:** [September 9, 2022, 4:19am UTC](https://forum.keycloak.org/t/how-to-handle-session-logout-in-angular-application/17314/1 "2022-09-09T04:19:36Z")

</div>

I use the method `keycloackService.update()` in an angular application when the access token is expired but also updates the refresh token.  
It ´s supposed that when the refresh token(the first generated when user log in) is expired then the client can’t renew an access token,so the user has to log in again.

How should I handle a session logout?.
