for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tymon\JWTAuth\Providers\JWT;
abstract class JWTProvider
{
/**
* @var string
*/
protected $secret;
protected $algo;
* @param string $secret
* @param string $algo
public function __construct($secret, $algo = 'HS256')
$this->secret = $secret;
$this->algo = $algo;
}
* Set the algorithm used to sign the token
*
* @return self
public function setAlgo($algo)
return $this;
* Get the algorithm used to sign the token
* @return string
public function getAlgo()
return $this->algo;