From 330dc188c874d3135fd7ff429f7e6d867cce9ccb Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Thu, 16 Oct 2014 07:05:46 -0400 Subject: [PATCH] Update auth-server-refresh-token.md --- auth-server-refresh-token.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth-server-refresh-token.md b/auth-server-refresh-token.md index bc6b7514..6c700049 100755 --- a/auth-server-refresh-token.md +++ b/auth-server-refresh-token.md @@ -17,10 +17,10 @@ $server->setSessionStorage(new Storage\SessionStorage); $server->setAccessTokenStorage(new Storage\AccessTokenStorage); $server->setClientStorage(new Storage\ClientStorage); $server->setScopeStorage(new Storage\ScopeStorage); -$server->setAccessTokenStorage(new Storage\RefreshTokenStorage); +$server->setRefreshTokenStorage(new Storage\RefreshTokenStorage); $refrehTokenGrant = new \League\OAuth2\Server\Grant\RefreshTokenGrant(); $server->addGrantType($refrehTokenGrant); ~~~ -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. \ No newline at end of file +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.