MCPcopy Create free account
hub / github.com/code-forge-io/Remix-Forge / generateFormStrategy

Function generateFormStrategy

src/auth/authStrategies/formStrategy.ts:1–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export 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};

Callers 1

index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected