Reactively authenticating organization through ctx.auth
Any way around this, or better path to take? Thanks!
Relevant code:
const identity = await ctx.auth.getUserIdentity();
if (!identity) {
return null;
}
const organization = await getOneFromOrThrow(
ctx.db,
"organizations",
"by_clerkId",
identity.language
);