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
I am using the following jwt setup
export const jwt = jwtPlugin({ name: 'jwt', alg: 'EdDSA', exp: '30m', schema: user, secret: await importJWK( { crv: 'Ed25519', d: 'N3cOzsFZwiIbtNiBYQP9bcbcTIdkITC8a4iRslrbW7Q', x: 'RjnTe-mqZcVls6SQ5CgW0X__jRaa-Quj5HBDREzVLhc', kty: 'OKP', }, 'EdDSA', ), })
This works for signing, but not for verification
TypeError: CryptoKey instances for asymmetric algorithm verifying must be of type "public"
It's worth noting that @elysia/jwt is using version 4 of jose. It might be a good idea to consider upgrading to version 5.
@elysia/jwt
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am using the following jwt setup
This works for signing, but not for verification
It's worth noting that
@elysia/jwt
is using version 4 of jose. It might be a good idea to consider upgrading to version 5.The text was updated successfully, but these errors were encountered: