MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / processSSOUserLogin

Function processSSOUserLogin

apps/web/src/lib/user/sso.ts:122–138  ·  view source on GitHub ↗
(
  args: CreateOrUpdateUserArgs,
  requestHeaders?: Headers,
  affiliateTrackingId?: string | null,
  trackingContext?: CreateOrUpdateUserTrackingContext
)

Source from the content-addressed store, hash-verified

120 action: 'organization.user.login',
121 actor_email: savedUser.google_user_email,
122 actor_id: savedUser.id,
123 actor_name: savedUser.google_user_name,
124 message: `User logged in via SSO`,
125 organization_id: kiloOrg.id,
126 });
127
128 return true;
129}
130
131export async function processSSOUserLogin(
132 args: CreateOrUpdateUserArgs,
133 requestHeaders?: Headers,
134 affiliateTrackingId?: string | null,
135 trackingContext?: CreateOrUpdateUserTrackingContext
136) {
137 try {
138 return await processSSOInternal(args, requestHeaders, affiliateTrackingId, trackingContext);
139 } catch (error) {
140 console.error('Error processing SSO login:', error);
141 captureException(error, {

Callers 2

sso.test.tsFile · 0.90
signInFunction · 0.90

Calls 2

processSSOInternalFunction · 0.85
errorMethod · 0.65

Tested by

no test coverage detected