Signed Tokens (JWS)
Signed Tokens Creation
<?php
use Jose\Factory\JWKFactory;
use Jose\Factory\JWSFactory;
$header = [
'alg' => 'RS256',
];
$jws = JWSFactory::createJWSToCompactJSON(
$claims, // The payload
$key, // The private/shared key used to sign
$header // The token protected header
);Signed Tokens Loading
Last updated
Was this helpful?