({
apiURI,
appId,
email,
}: SharedInput & SendMagicCodeParams)
| 12 | }; |
| 13 | |
| 14 | export 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 | |
| 26 | export type VerifyMagicCodeParams = { |
| 27 | email: string; |
nothing calls this directly
no test coverage detected