Update auth-server-which-grant.md

This commit is contained in:
Christopher Pitt 2014-11-19 17:44:08 +02:00
parent 03d7e55d53
commit 3de7d8c8f8

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.