Update PayloadValidator.php
This commit is contained in:
		
							parent
							
								
									a58893bdd9
								
							
						
					
					
						commit
						86bb12c1eb
					
				| 
						 | 
				
			
			@ -95,7 +95,7 @@ class PayloadValidator extends AbstractValidator
 | 
			
		|||
    protected function validateRefresh(array $payload)
 | 
			
		||||
    {
 | 
			
		||||
        if (isset($payload['iat']) && Utils::timestamp($payload['iat'])->addMinutes($this->refreshTTL)->isPast()) {
 | 
			
		||||
            throw new TokenExpiredException('Token has expired and can no longer be refreshed', 400);
 | 
			
		||||
            throw new TokenExpiredException('Token has expired and can no longer be refreshed', 401);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user