Merge pull request #234 from joshtronic/patch-2

Update auth-server-refresh-token.md
This commit is contained in:
Alex Bilbie 2014-10-17 12:22:11 +01:00
commit 4031c41a42

View File

@ -19,8 +19,8 @@ $server->setClientStorage(new Storage\ClientStorage);
$server->setScopeStorage(new Storage\ScopeStorage); $server->setScopeStorage(new Storage\ScopeStorage);
$server->setAccessTokenStorage(new Storage\RefreshTokenStorage); $server->setAccessTokenStorage(new Storage\RefreshTokenStorage);
$refrehTokenGrant = new \League\OAuth2\Server\Grant\RefreshTokenGrant(); $refreshTokenGrant = new \League\OAuth2\Server\Grant\RefreshTokenGrant();
$server->addGrantType($refrehTokenGrant); $server->addGrantType($refreshTokenGrant);
~~~ ~~~
When the refresh token grant is enabled, a refresh token will automatically be created with access tokens issued requested using the [authorization code](/authorization-server/auth-code-grant/) or [resource owner password credentials](/authorization-server/resource-owner-password-credentials-grant/) grants. When the refresh token grant is enabled, a refresh token will automatically be created with access tokens issued requested using the [authorization code](/authorization-server/auth-code-grant/) or [resource owner password credentials](/authorization-server/resource-owner-password-credentials-grant/) grants.