t.withIdentity with custom claims
We currently have some helper functions which check custom claims on the getUserIdentity object e.g. "orgId".
Am I right in thinking that in convex-test (0.0.28) these custom claims currently aren't supported when using t.withIdentity?
2 Replies
From a quick look, I think we haven't updated the types in
convex-test
to be compatible with custom claims, but I think at runtime, you should be able to specify custom claims + access them in tests (I'd try this out with a @ts-expect-error
comment to get around the type error until there's a new convex-test
version)Makes sense, thanks!