public function TokenGenerator::__construct in Auth0 Single Sign On 8.2
TokenGenerator constructor.
Parameters
string $audience ID token audience to set.:
string $secret Token encryption secret to encode the token.:
File
- vendor/
auth0/ auth0-php/ src/ API/ Helpers/ TokenGenerator.php, line 41
Class
- TokenGenerator
- Class TokenGenerator. Generates HS256 ID tokens.
Namespace
Auth0\SDK\API\HelpersCode
public function __construct($audience, $secret) {
$this->audience = $audience;
$this->secret = $secret;
}