jwt : typo on default value HS255 -> HS256
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5792 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2
jwt.php
2
jwt.php
@@ -30,7 +30,7 @@ class jwt
|
|||||||
* length)
|
* length)
|
||||||
* @return string The Token
|
* @return string The Token
|
||||||
*/
|
*/
|
||||||
public function encode ($payload, $key, $alg = "HS255", $ckey = null)
|
public function encode ($payload, $key, $alg = "HS256", $ckey = null)
|
||||||
// {{{
|
// {{{
|
||||||
{
|
{
|
||||||
if (! key_exists ($alg, $this->supportedAlgs))
|
if (! key_exists ($alg, $this->supportedAlgs))
|
||||||
|
|||||||
Reference in New Issue
Block a user