Jczhang
Jczhang
CCConvex Community
Created by Jczhang on 12/18/2023 in #support-community
Convex Action build error: could not resolve 'crypto-js'
I tried to import CryptoJS from "crypto-js"; in a custom convex action But on npx convex dev I got this error (which I think comes from esbuild but I am not familiar with what is happening underlying Convex)
You can mark the path "crypto-js" as external to exclude it from the bundle, which will remove
this error.
You can mark the path "crypto-js" as external to exclude it from the bundle, which will remove
this error.
How can I mark this dep as external in my next.js project? I have installed the package from npm install. Thanks for helping!
8 replies
CCConvex Community
Created by Jczhang on 12/12/2023 in #support-community
Using Clerk OAuth app with Convex? How to setAuth()?
I am following this for creating my own OAuth app through Clerk: https://clerk.com/docs/advanced-usage/clerk-idp from their tutorial it is clear that I can access /oauth/userinfo to get the userId. But I am not sure what is the access token format from Clerk (looks like it is not a convex compatible jwt) and what should I do if I want to use a convex client from backend. After I have the access token from Clerk OAuth or I already know the userId within the request, how to setAuth() for convex client? I don't know what jwt to pass in since I am using Clerk. Is there a super admin convex client that I can directly operate with known userId? Thanks for helping!
3 replies