MCPcopy Create free account
hub / github.com/instantdb/instant / sendMagicCode

Function sendMagicCode

client/packages/core/src/authAPI.ts:14–24  ·  view source on GitHub ↗
({
  apiURI,
  appId,
  email,
}: SharedInput & SendMagicCodeParams)

Source from the content-addressed store, hash-verified

12};
13
14export function sendMagicCode({
15 apiURI,
16 appId,
17 email,
18}: SharedInput & SendMagicCodeParams): Promise<SendMagicCodeResponse> {
19 return jsonFetch(`${apiURI}/runtime/auth/send_magic_code`, {
20 method: 'POST',
21 headers: { 'content-type': 'application/json' },
22 body: JSON.stringify({ 'app-id': appId, email }),
23 });
24}
25
26export type VerifyMagicCodeParams = {
27 email: string;

Callers

nothing calls this directly

Calls 1

jsonFetchFunction · 0.50

Tested by

no test coverage detected