src/Phalcon/Auth/Adapter.php
protected function decode($token, $key)
	{
		try {
			if($this->leeway) {
				JWT::$leeway = $this->leeway;
			}

			$payload = (array) JWT::decode($token, $key, [$this->algo]);

			return $payload;

		} catch(\Exception $e) {
			$this->appendMessage($e->getMessage());
			return false;

		}
	}
protected function decode($token, $key)
	{
		try {
			if($this->leeway) {
				JWT::$leeway = $this->leeway;
			}

			$payload = (array) JWT::decode($token, $key, [$this->algo]);

			return $payload;

		} catch(\Exception $e) {
			$this->appendMessage($e->getMessage());
			return false;

		}
	}
protected function decode ( $ token , $ key ) { try { if ( $ this -> leeway ) { JWT :: $ leeway = $ this -> leeway ; } $ payload = ( array ) JWT :: decode ( $ token , $ key , [ $ this -> algo ] ) ; return $ payload ; } catch ( \ Exception $ e ) { $ this -> appendMessage ( $ e -> getMessage ( ) ) ; return false ; } }
Decodes JWT.

@param string $token
@param string $key

@return array
Decodes JWT .