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
67 const subject = identity.subject;67 const subject = identity.subject;
68 const authKitProfile = await getAuthKitUserProfile(ctx, subject);68 const authKitProfile = await getAuthKitUserProfile(ctx, subject);
69 const identityProfile = resolveIdentityProfile({69 const identityProfile = resolveIdentityProfile({
70 identity: identity as Record<string, unknown> & { subject: string },70 identity: { ...identity, subject },
71 authKitProfile,71 authKitProfile,
72 });72 });
73 73