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

Function getUserFromAuthOrRedirect

apps/web/src/lib/user/server.ts:1048–1059  ·  view source on GitHub ↗
(
  loggedOutRedirectUrl = '/users/sign_in'
)

Source from the content-addressed store, hash-verified

1046 logExceptInTest(
1047 JSON.stringify({
1048 event: 'admin_login_succeeded',
1049 kiloUserId: existingUser.id,
1050 email: existingUser.google_user_email,
1051 provider: accountInfo.provider,
1052 adminTier: existingUser.is_super_admin ? 'super_admin' : 'platform_admin',
1053 })
1054 );
1055 }
1056 } catch (error) {
1057 captureException(error, {
1058 tags: {
1059 operation: 'user_sync_jwt',
1060 provider: accountInfo?.provider,
1061 },
1062 extra: accountInfo,

Callers 15

AcceptInvitePageFunction · 0.90
DeviceAuthPageFunction · 0.90
GitHubAppPageFunction · 0.90
AccountsPageFunction · 0.90
DeployPageFunction · 0.90
DeploymentDetailPageFunction · 0.90
PersonalReviewAgentPageFunction · 0.90
CodeReviewDetailPageFunction · 0.90
SecurityAgentRootLayoutFunction · 0.90
GastownPageFunction · 0.90

Calls 2

getUserFromAuthFunction · 0.85
appendCallbackPathFunction · 0.85

Tested by

no test coverage detected