From f42c821a187c86f8e88af7d034ba928d67476e2d Mon Sep 17 00:00:00 2001 From: Andrew Millington Date: Thu, 6 Dec 2018 23:25:50 +0000 Subject: [PATCH] Fix documentation error Changed documentation as the expiry date is for the refresh token instead of the access token --- repository-interface-refresh-token.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repository-interface-refresh-token.md b/repository-interface-refresh-token.md index 74fbfe35..63ce2fca 100644 --- a/repository-interface-refresh-token.md +++ b/repository-interface-refresh-token.md @@ -20,7 +20,7 @@ When a new refresh token is created this method will be called. You don't have t The refresh token entity passed in has a number of methods you can call which contain data worth saving to a database: * `getIdentifier() : string` this is randomly generated unique identifier (of 80+ characters in length) for the refresh token. -* `getExpiryDateTime() : \DateTime` the expiry date and time of the access token. +* `getExpiryDateTime() : \DateTime` the expiry date and time of the refresh token. * `getAccessToken()->getIdentifier() : string` the linked access token's identifier. JWT access tokens contain an expiry date and so will be rejected automatically when used. You can safely clean up expired access tokens from your database. @@ -31,4 +31,4 @@ This method is called when a refresh token is used to reissue an access token. T ## isRefreshTokenRevoked() : boolean -This method is called when an refresh token is used to issue a new access token. Return `true` if the refresh token has been manually revoked before it expired. If the token is still valid return `false`. \ No newline at end of file +This method is called when an refresh token is used to issue a new access token. Return `true` if the refresh token has been manually revoked before it expired. If the token is still valid return `false`.