()
| 1 | export const generateFormStrategy = () => { |
| 2 | return [ |
| 3 | "// Refer to https://github.com/sergiodxa/remix-auth-form for more information", |
| 4 | 'import type { User } from "~/services/auth.server";', |
| 5 | 'import { FormStrategy } from "remix-auth-form";', |
| 6 | "", |
| 7 | "export const formStrategy = new FormStrategy<User>(", |
| 8 | " async ({ form, context }) => {", |
| 9 | " // Do something with the tokens and profile", |
| 10 | " return {};", |
| 11 | " }", |
| 12 | ");", |
| 13 | "", |
| 14 | ].join("\n"); |
| 15 | }; |