# How to extend the expires\_in time in Admin API?

**URL:** <https://forum.shopware.com/t/how-to-extend-the-expires-in-time-in-admin-api/65925>\
**Category:** Programming (EN)\
**Created:** [1. April 2020 um 09:43 UTC](https://forum.shopware.com/t/how-to-extend-the-expires-in-time-in-admin-api/65925 "2020-04-01T09:43:46Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Hashtag\_Assist](https://avatars.discourse-cdn.com/v4/letter/h/e19b73/32.png) [@Hashtag\_Assist](https://forum.shopware.com/u/Hashtag_Assist)\
**Post date:** [29. September 2023 um 08:43 UTC](https://forum.shopware.com/t/how-to-extend-the-expires-in-time-in-admin-api/65925/7 "2023-09-29T08:43:40Z")

</div>

@eisen-pavillon.de

Das ist schon richtig so. Eigentlich baut man einen Authentication Service der sich einloggt und einen Refresh Service der die Tokenlifetime nutzt um sich aus dem Refreshtoken einen neuen zu generieren.  
Hier ist der ganze Prozess gut erklärt:

> **[What Are Refresh Tokens and How to Use Them Securely](https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them/)**
>
> Learn about refresh tokens and how they help developers balance security and usability in their applications.

---

_[View the full topic](https://forum.shopware.com/t/how-to-extend-the-expires-in-time-in-admin-api/65925)._
