# Authentication token expired

**URL:** <https://forum.social.plus/t/authentication-token-expired/1125>\
**Category:** Web\
**Created:** [February 15, 2024, 7:30am UTC](https://forum.social.plus/t/authentication-token-expired/1125 "2024-02-15T07:30:52Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [February 23, 2024, 7:31am UTC](https://forum.social.plus/t/authentication-token-expired/1125/6 "2024-02-23T07:31:33Z")

</div>

Hello , As a workaround, we recommend updating the open-source code manually to include the following function for session renewal:

```auto
sessionWillRenewAccessToken(renewal) {
  // secure mode
  if (authToken) {
    renewal.renewWithAuthToken(authToken);
    return;
  }

  renewal.renew();
},

```

This fix will apply to both the SDK and UI Kit, and we plan to release a fix for the UI Kit early next week.

Thank you.

---

_[View the full topic](https://forum.social.plus/t/authentication-token-expired/1125)._
