Kevin
Kevin
CCConvex Community
Created by Kevin on 8/29/2024 in #support-community
[Convex Auth] Middleware on Nextjs
Great I will debug and let you know
11 replies
CCConvex Community
Created by Kevin on 8/29/2024 in #support-community
[Convex Auth] Middleware on Nextjs
but when I log isAuthenticatedNextjs on middle, it said false I tried to refresh the app, but still false, so I think cookie is not carrying over?
11 replies
CCConvex Community
Created by Kevin on 8/29/2024 in #support-community
[Convex Auth] Middleware on Nextjs
@sshader I used Email OTP, so in email sent from resend, it has only OTP code then on web client, I call signIn with email and otp, it seems working because isAuthenticated = true
11 replies
CCConvex Community
Created by Kevin on 8/29/2024 in #support-community
[Convex Auth] Middleware on Nextjs
In my convex logs, I didn't see anything, in browser network tab, what kind of requests should I check?
11 replies
CCConvex Community
Created by Kevin on 8/29/2024 in #support-community
[Convex Auth] Middleware on Nextjs
Hi yes, I have ConvexAuthNextjsServerProvider at root layout
11 replies
CCConvex Community
Created by Kevin on 8/26/2024 in #support-community
"Could not verify token claim" on React Native
awesome
65 replies
CCConvex Community
Created by Kevin on 8/26/2024 in #support-community
"Could not verify token claim" on React Native
I can continue migration now
65 replies
CCConvex Community
Created by Kevin on 8/26/2024 in #support-community
"Could not verify token claim" on React Native
but thanks for your help, 100% appreciated
65 replies
CCConvex Community
Created by Kevin on 8/26/2024 in #support-community
"Could not verify token claim" on React Native
yeah
65 replies
CCConvex Community
Created by Kevin on 8/26/2024 in #support-community
"Could not verify token claim" on React Native
process.stdout.write(JWKS=${jwks});
65 replies
CCConvex Community
Created by Kevin on 8/26/2024 in #support-community
"Could not verify token claim" on React Native
this script from documentation
65 replies
CCConvex Community
Created by Kevin on 8/26/2024 in #support-community
"Could not verify token claim" on React Native
import { exportJWK, exportPKCS8, generateKeyPair } from "jose";

const keys = await generateKeyPair("RS256");
const privateKey = await exportPKCS8(keys.privateKey);
const publicKey = await exportJWK(keys.publicKey);
const jwks = JSON.stringify({ keys: [{ use: "sig", ...publicKey }] });

process.stdout.write(
`JWT_PRIVATE_KEY="${privateKey.trimEnd().replace(/\n/g, " ")}"`,
);
process.stdout.write("\n");
process.stdout.write(`JWKS=${jwks}`);
process.stdout.write("\n");
import { exportJWK, exportPKCS8, generateKeyPair } from "jose";

const keys = await generateKeyPair("RS256");
const privateKey = await exportPKCS8(keys.privateKey);
const publicKey = await exportJWK(keys.publicKey);
const jwks = JSON.stringify({ keys: [{ use: "sig", ...publicKey }] });

process.stdout.write(
`JWT_PRIVATE_KEY="${privateKey.trimEnd().replace(/\n/g, " ")}"`,
);
process.stdout.write("\n");
process.stdout.write(`JWKS=${jwks}`);
process.stdout.write("\n");
65 replies
CCConvex Community
Created by Kevin on 8/26/2024 in #support-community
"Could not verify token claim" on React Native
actually maybe better to make it consistency JWT_PRIVATE_KEY="<key>" JWKS="<key>" then copy <key> the confusion here is JWKS doesn't have ""
65 replies
CCConvex Community
Created by Kevin on 8/26/2024 in #support-community
"Could not verify token claim" on React Native
JWT_PRIVATE_KEY should remove "" while put to environment
65 replies
CCConvex Community
Created by Kevin on 8/26/2024 in #support-community
"Could not verify token claim" on React Native
No description
65 replies
CCConvex Community
Created by Kevin on 8/26/2024 in #support-community
"Could not verify token claim" on React Native
copy the output and bring to convex dashboard environment should remove double quotes
65 replies
CCConvex Community
Created by Kevin on 8/26/2024 in #support-community
"Could not verify token claim" on React Native
when run this code
node generateKeys.mjs
node generateKeys.mjs
65 replies
CCConvex Community
Created by Kevin on 8/26/2024 in #support-community
"Could not verify token claim" on React Native
65 replies
CCConvex Community
Created by Kevin on 8/26/2024 in #support-community
"Could not verify token claim" on React Native
I found the root of issue
65 replies
CCConvex Community
Created by Kevin on 8/26/2024 in #support-community
"Could not verify token claim" on React Native
after I read your link above
65 replies