We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5044ab5 commit 359f494Copy full SHA for 359f494
app/routes/_auth+/auth.$provider.ts renamed to app/routes/_auth+/auth_.$provider.ts
@@ -1,10 +1,14 @@
1
-import { type ActionFunctionArgs } from '@remix-run/node'
+import { redirect, type ActionFunctionArgs } from '@remix-run/node'
2
import { authenticator } from '#app/utils/auth.server.ts'
3
import { handleMockAction } from '#app/utils/connections.server.ts'
4
import { ProviderNameSchema } from '#app/utils/connections.tsx'
5
import { getReferrerRoute } from '#app/utils/misc.tsx'
6
import { getRedirectCookieHeader } from '#app/utils/redirect-cookie.server.ts'
7
8
+export async function loader() {
9
+ return redirect('/login')
10
+}
11
+
12
export async function action({ request, params }: ActionFunctionArgs) {
13
const providerName = ProviderNameSchema.parse(params.provider)
14
0 commit comments