# Warum wird beim beantragen eines Access-Tokens kein Refresh-Token mitgeliefert ?

**URL:** <https://forum.shopware.com/t/warum-wird-beim-beantragen-eines-access-tokens-kein-refresh-token-mitgeliefert/67925>\
**Category:** Allgemein\
**Created:** [25. Juni 2020 um 13:58 UTC](https://forum.shopware.com/t/warum-wird-beim-beantragen-eines-access-tokens-kein-refresh-token-mitgeliefert/67925 "2020-06-25T13:58:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MentionMarcel](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@MentionMarcel](https://forum.shopware.com/u/MentionMarcel)\
**Post date:** [25. Juni 2020 um 13:58 UTC](https://forum.shopware.com/t/warum-wird-beim-beantragen-eines-access-tokens-kein-refresh-token-mitgeliefert/67925/1 "2020-06-25T13:58:28Z")

</div>

Hallo zusammen,

wenn ich eine “Integration” authentifizieren will bekomme ich in der response keinen Refresh-Token mitgeliefert, weiß jemand warum ?

Hier ein paar Daten:

Ich frage folgenden Endpunkt ab: “/api/oauth/token” (POST)

Mein RequestBody sieht so aus:

{

&nbsp;&nbsp;&nbsp;&nbsp;“grant\_type”:“client\_credentials”,

&nbsp;&nbsp;&nbsp;&nbsp;“client\_id”:"{Zugangs-ID}",

&nbsp;&nbsp;&nbsp;&nbsp;“client\_secret”:"{Sicherheitsschlüssel}",

}

& diese Response bekomme ich wieder:

{

&nbsp;&nbsp;&nbsp;&nbsp;“token\_type”:&nbsp;“Bearer”,

&nbsp;&nbsp;&nbsp;&nbsp;“expires\_in”:&nbsp;600,

&nbsp;&nbsp;&nbsp;&nbsp;“access\_token”:&nbsp;“{AccessToken}”

}

Freue mich über eine Antwort !&nbsp; ![Smile](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/bac5f5766b6a20565a8fb995345b4e41d24daac0.png "Smile")

---

<div class="post-metadata">

**Author:** ![yunits](https://avatars.discourse-cdn.com/v4/letter/y/cc9497/32.png) [@yunits](https://forum.shopware.com/u/yunits)\
**Post date:** [2. Oktober 2020 um 12:35 UTC](https://forum.shopware.com/t/warum-wird-beim-beantragen-eines-access-tokens-kein-refresh-token-mitgeliefert/67925/2 "2020-10-02T12:35:55Z")

</div>

Damit das hier nicht unbeantwortet bleibt:

Zitiert von gitter.im/…

> Joshua Behrens
> 
> @abin2hats&nbsp;you don’t need a refresh token when using client\_credentials as you still have the client\_credentials and they don’t expire unless they are removed from the shop
