(body: {
[x: string]: string | File;
})
| 379 | }; |
| 380 | |
| 381 | export const parseApproveFormBody = async (body: { |
| 382 | [x: string]: string | File; |
| 383 | }) => { |
| 384 | const action = body.action as string; |
| 385 | const email = body.email as string; |
| 386 | const password = body.password as string; |
| 387 | let oauthReqInfo: AuthRequest | null = null; |
| 388 | try { |
| 389 | oauthReqInfo = JSON.parse(body.oauthReqInfo as string) as AuthRequest; |
| 390 | } catch (e) { |
| 391 | oauthReqInfo = null; |
| 392 | } |
| 393 | |
| 394 | return { action, oauthReqInfo, email, password }; |
| 395 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected