Merge pull request #257 from assertchris/patch-1

Update auth-server-which-grant.md
This commit is contained in:
Alex Bilbie 2014-11-19 19:11:02 +00:00
commit 9b771d8403

View File

@ -106,8 +106,8 @@ When someone visits a member of staffs page on the [University of Lincoln sta
**To enable this grant:**
~~~ php
$refrehTokenGrant = new \League\OAuth2\Server\Grant\RefreshTokenGrant();
$server->addGrantType($refrehTokenGrant);
$refreshTokenGrant = new \League\OAuth2\Server\Grant\RefreshTokenGrant();
$server->addGrantType($refreshTokenGrant);
~~~
The OAuth 2.0 specification also details a fifth grant which can be used to “refresh” (i.e. renew) an access token which has expired.