Drakenhielm
Drakenhielm
CCConvex Community
Created by Drakenhielm on 6/15/2024 in #support-community
Convex AI chat hidden behind table
No description
6 replies
CCConvex Community
Created by Drakenhielm on 3/19/2024 in #support-community
Verify JWT token signed by Convex
I'm currently in the process of developing my own authentication system. Users log in using an HTTP action, receiving both an HTTP-only session and a short-lived JWT. This JWT is generated through a node runtime action employing jsonwebtoken. However, I've encountered an issue: when it comes to queries and mutations, jsonwebtoken does not work as it requires node, and I'm unable to invoke a node action for JWT verification. I'm considering two possible solutions: 1. Creating a REST API adhering to OpenID standards, allowing Convex to call itself by the built-in functionality for Auth providers. Not sure if calling it self is possible. 2. Exploring the possibility of verifying the JWT using the available crypto web API. Any insights or suggestions on the best approach to resolve this issue would be greatly appreciated!
5 replies