Skip to content

Commit

Permalink
Added generate secret
Browse files Browse the repository at this point in the history
  • Loading branch information
byjg committed Nov 19, 2019
1 parent afb42cb commit 6618613
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/JwtWrapper.php
Expand Up @@ -125,4 +125,9 @@ public function getAuthorizationBearer()

return $bearer;
}

public static function generateSecret($bytes)
{
return base64_encode(openssl_random_pseudo_bytes($bytes));
}
}

0 comments on commit 6618613

Please sign in to comment.