MCPcopy Create free account
hub / github.com/emwalker/digraph / createSession

Function createSession

client/src/server/auth/withGithub.ts:29–34  ·  view source on GitHub ↗
(environment: Environment, config: Config)

Source from the content-addressed store, hash-verified

27type Config = Omit<MutationConfig<createGithubSessionMutation>, 'mutation'>
28
29function createSession(environment: Environment, config: Config) {
30 return commitMutation<createGithubSessionMutation>(
31 // @ts-expect-error
32 environment, { ...config, mutation: createGithubSessionQuery },
33 )
34}
35
36const primaryOrFirstEmail = (emails: Email[]) => {
37 const matches = emails.filter(({ primary }) => primary)

Callers 1

onAuthSuccessFnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected