# Kein Refresh Token

**URL:** <https://forum.shopware.com/t/kein-refresh-token/67975>\
**Category:** Programmierung\
**Created:** [28. Juni 2020 um 22:27 UTC](https://forum.shopware.com/t/kein-refresh-token/67975 "2020-06-28T22:27:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jungblut](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@jungblut](https://forum.shopware.com/u/jungblut)\
**Post date:** [28. Juni 2020 um 22:27 UTC](https://forum.shopware.com/t/kein-refresh-token/67975/1 "2020-06-28T22:27:44Z")

</div>

Hallo Zusammen,

ich versuche gerade via “Integration” anzubinden. Klappt an sich gut. Nur bekomme ich keinen Refresh Token.  
Wieso nicht?

Ich benutze _/api/oauth/token_

```
$body = \json_encode([
	'client_id' => 'administration',
	'grant_type' => 'password',
	'scopes' => "write",
	'username' => "admin",
	'password' => "admin"
]);

```

Antwort:

```
array(4) {
  ["token_type"]=>
  string(6) "Bearer"
  ["expires_in"]=>
  int(600)
  ["access_token"]=>
  string(798) "eyJ0eXAiO....."
  ["refresh_token"]=>
  string(812) "def50200....."
}

```

Andere Anfrage

```
$body = \json_encode([
	'client_id' => 'SWIAYNZGCGJLUMZYD1FQZHLMAA',
	'grant_type' => 'client_credentials',
	'scopes' => 'write',
	'client_secret' => 'cTE3M2dXcWZPdHVqbWh0SmhOWHFNeDE5OWF2SWFZSmRwSWV1QjI'
]);

```

Antwort:

```
array(3) {
  ["token_type"]=>
  string(6) "Bearer"
  ["expires_in"]=>
  int(600)
  ["access_token"]=>
  string(771) "eyJ0eXA...."
}

```

Wieso?

Grüßle
