We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$token = $config->builder() ->issuedBy('xy') // iss ->permittedFor('xy') // aud ->relatedTo('xy') // sub ->withClaim('room', '*') ->expiresAt($now) ->withHeader('kid', 'xy') ->getToken($config->signer(), $config->signingKey());
$token->toString() now has a floating point value in the "exp" field:
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImtpZCI6Inh5In0.eyJpc3MiOiJ4eSIsImF1ZCI6Inh5Iiwic3ViIjoieHkiLCJyb29tIjoiKiIsImV4cCI6IjE2MTQxODI0MTIuMTI1NzgwIn0.oocn8Wg3RB8bGPeLNEPDkis9YwWPRIuNxxlXI2m3so8
{ "iss": "xy", "aud": "xy", "sub": "xy", "room": "*", "exp": "1614182412.125780" }
The text was updated successfully, but these errors were encountered:
Duplicate of #618
Also take a look at #623
Sorry, something went wrong.
Hello folks, thanks to @yassinrais we managed to fix this compatibility issue whilst still preserving the microseconds precision. We already released new versions to solve the problem.
lcobucci
No branches or pull requests
$token->toString() now has a floating point value in the "exp" field:
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImtpZCI6Inh5In0.eyJpc3MiOiJ4eSIsImF1ZCI6Inh5Iiwic3ViIjoieHkiLCJyb29tIjoiKiIsImV4cCI6IjE2MTQxODI0MTIuMTI1NzgwIn0.oocn8Wg3RB8bGPeLNEPDkis9YwWPRIuNxxlXI2m3so8
{
"iss": "xy",
"aud": "xy",
"sub": "xy",
"room": "*",
"exp": "1614182412.125780"
}
The text was updated successfully, but these errors were encountered: