History

Remove identity cast in account bootstrap flow

Rhys Sullivan committed 8 months ago

Commit b523ac51 parent ff145681 file · +1 −1Browse files

Unified · Split

executor/packages/database/src/auth/bootstrap.ts+1−1
@@ -67,7 +67,7 @@ export async function bootstrapCurrentWorkosAccountImpl(ctx: MutationCtx) { · 66 unmodified lines
6767 const subject = identity.subject;
6868 const authKitProfile = await getAuthKitUserProfile(ctx, subject);
6969 const identityProfile = resolveIdentityProfile({
70− identity: identity as Record<string, unknown> & { subject: string },
70+ identity: { ...identity, subject },
7171 authKitProfile,
7272 });
7373