Signing a JWT in WordPress and then verifying that token in a Next.js app

I have another question that is similar to this one in the General category, but I would like to sign a token in Login by Auth0 and then verify that token in a Next.js app.

The problem that I’m facing is that I can’t figure out how to get a signed JWT or a Secret Key from the WordPress plugin.