GenTux\Jwt\JwtToken::algorithm PHP Méthode

algorithm() public méthode

This can be customized by setting the env variable JWT_ALGO
public algorithm ( ) : string
Résultat string
    public function algorithm()
    {
        $algorithm = $this->algorithm ?: getenv('JWT_ALGO');
        return $algorithm ?: 'HS256';
    }