KevinK
Convex Community2y ago
64 replies
Kevin

"Could not verify token claim" on React Native

Hi guys, I am trying to replace Clerk Auth with Convex Auth using in react native (with expo)

I am testing locally, after trying to verifying code via email
I got this issue

Failed to authenticate: "Could not verify token claim", check your server auth config

"check your server auth config" What exactly do I need to check?

auth.ts
import Apple from "@auth/core/providers/apple";
import Google from "@auth/core/providers/google";
import Resend from "@auth/core/providers/resend";
import { Anonymous } from "@convex-dev/auth/providers/Anonymous";
import { convexAuth } from "@convex-dev/auth/server";

import { env } from "./env";
import { ResendOTP } from "./lib/auth/otp/email/resend_otp";

export const { auth, signIn, signOut, store } = convexAuth({
  providers: [
    Apple,
    Google,
    Anonymous,
    Resend({
      apiKey: env.RESEND_API_KEY,
      from: env.RESEND_FROM_ADDRESS,
    }),
    ResendOTP,
  ],
});


Note: I can see user is inserted in users table
with this data
{
  email: "yolo09@mailinator.com",
  emailVerificationTime: 1724679714774,
}
Was this page helpful?