How do I properly validate the JWT from the Genesys Cloud implicit grant in a React app? I’m trying to check the token locally before making API calls, but I keep getting an invalid signature error. Here’s my validation code:
const isValid = jwt.verify(token, publicKey, { algorithms: ['RS256'] });
The token comes from the redirect URI. Am I missing a step in the public key retrieval?