I var_dumped the decoded token and found the reason why it wasn’t working. ![]()
I’ve used issuedBy twice. There was no issuedAt.
After changing that line to the right thing, everything worked fine.
$builder = $this->configuration->builder()
->issuedBy($this->issuer)
->identifiedBy(Uuid::v4()->toRfc4122())
**->issuedAt($now)** // <- here was the problem
->canOnlyBeUsedAfter($now)
->expiresAt($now->addSeconds($this->lifetime));
Nevertheless, thank you very much for your help