MCPcopy
hub / github.com/graphile/starter / login

Function login

@app/db/__tests__/app_private/functions/login.test.ts:6–18  ·  view source on GitHub ↗
(
  client: PoolClient,
  username: string | null,
  password: string | null
)

Source from the content-addressed store, hash-verified

4import { reallyCreateUser } from "./really_create_user.test";
5
6export async function login(
7 client: PoolClient,
8 username: string | null,
9 password: string | null
10) {
11 const {
12 rows: [row],
13 } = await client.query(`select * from app_private.login($1, $2)`, [
14 username,
15 password,
16 ]);
17 return row;
18}
19
20const USERNAME = "username";
21const EMAIL = `${USERNAME}@example.com`;

Callers 2

login.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected