Skip to content

Commit 07583cb

Browse files
authored
Merge pull request #30 from wp-graphql/revert-29-feature/#26-expose-jwt-refresh-in-rest-response-headers
Revert "#26 - remove unused filter that was causing issues with expiration dates"
2 parents 0a86cd0 + 2b8db14 commit 07583cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Auth.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ public static function get_token_issued() {
9999
*/
100100
public static function get_token_expiration() {
101101

102-
if ( ! isset( self::$expiration ) || empty( self::$expiration ) ) {
102+
if ( ! isset( self::$expiration ) ) {
103103

104104
/**
105105
* Set the expiration time, default is 300 seconds.
106106
*/
107107
$expiration = self::get_token_issued() + 300;
108108

109109
/**
110-
* Determine the expiration value. Default is 5 minutes, but is filterable to be configured as needed
110+
* Determine the expiration value. Default is 7 days, but is filterable to be configured as needed
111111
*
112112
* @param string $expiration The timestamp for when the token should expire
113113
*/

0 commit comments

Comments
 (0)