Skip to content

Sanity check: Supabase integration with reset password #1733

Closed Answered by ccssmnn
adamhp asked this question in Q&A
Discussion options

You must be logged in to vote

You should be able to read anything that is part of the URL on the server inside your loader.

I'm using Firebase, but they have similar approaches to Action URLs. You can extract every URL parameter from your URL and return it as LoaderData. Then, if needed, provide them in your form as hidden inputs. With HTTPS, the communication is secure. It does not matter if you use URL-Parameters or POST-Bodies. Here my firebase action route for reference. I hope this helps.

import { applyActionCode, confirmPasswordReset } from "firebase/auth";
import {
  ActionFunction,
  Form,
  json,
  Link,
  LoaderFunction,
  redirect,
  useActionData,
  useLoaderData,
} from "remix";
import { Topbar } from "~/…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@adamhp
Comment options

@ccssmnn
Comment options

Answer selected by machour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants