MCPcopy
hub / github.com/logto-io/logto / consumePasscode

Function consumePasscode

packages/core/src/queries/passcode.ts:61–67  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

59 });
60
61 const consumePasscode = async (id: string) =>
62 pool.query<Passcode>(sql`
63 update ${table}
64 set ${fields.consumed}=true
65 where ${fields.id}=${id}
66 returning ${sql.join(Object.values(fields), sql`, `)}
67 `);
68
69 const increasePasscodeTryCount = async (id: string) =>
70 pool.query<Passcode>(sql`

Callers 1

verifyPasscodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected