Skip to content

Commit

Permalink
temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jturbide committed Jun 21, 2023
1 parent 28d241e commit 7676237
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Provider/Jwt/Jwt.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ public function buildToken(Builder $builder = null): Token
*/
public function parseToken(string $token): Token
{
// fix phalcon error
// https://github.com/phalcon/cphalcon/blob/bf9b70cee49afcccd10cfee783218ead2419d8ef/phalcon/Encryption/Security/JWT/Token/Parser.zep#L166
// https://github.com/phalcon/cphalcon/issues/15608#issuecomment-1359323119
json_encode(null);
$this->token = $this->parser()->parse($token);
return $this->token;
}
Expand Down

0 comments on commit 7676237

Please sign in to comment.