src/Phalcon/Auth/Adapter.php
protected function encode($payload, $key)
	{
		if( isset($payload['exp']) ) {
			$payload['exp'] = time() + $this->minToSec($payload['exp']);
		}
		return JWT::encode($payload, $key, $this->algo);
	}
protected function encode($payload, $key)
	{
		if( isset($payload['exp']) ) {
			$payload['exp'] = time() + $this->minToSec($payload['exp']);
		}
		return JWT::encode($payload, $key, $this->algo);
	}
protected function encode ( $ payload , $ key ) { if ( isset ( $ payload [ 'exp' ] ) ) { $ payload [ 'exp' ] = time ( ) + $ this -> minToSec ( $ payload [ 'exp' ] ) ; } return JWT :: encode ( $ payload , $ key , $ this -> algo ) ; }
Encodes array into JWT.

@param array $payload
@param string $key

@return string
Encodes array into JWT .