chizom
04/18/2022, 4:12 PMgaryaustin
04/18/2022, 5:09 PMchizom
04/18/2022, 5:12 PMgaryaustin
04/18/2022, 5:14 PMgaryaustin
04/18/2022, 5:20 PMgaryaustin
04/18/2022, 5:22 PMchizom
04/18/2022, 5:29 PMgaryaustin
04/18/2022, 5:33 PMchizom
04/18/2022, 5:55 PMchizom
04/18/2022, 5:56 PMgaryaustin
04/18/2022, 6:05 PMchizom
04/18/2022, 6:08 PMchizom
04/18/2022, 6:08 PMgaryaustin
04/18/2022, 6:17 PMIf you provide email without a password, the user will be sent a magic link.
The magic link's destination URL is determined by the SITE_URL config variable. To change this, you can go to Authentication -> Settings on app.supabase.io
Seems a bit odd as on the server that is called: SiteURL -- The base URL of your website
But you can also try it, especially if you are only do magic link, to force it to dashboard page, but you would still have no user for a brief time so can't start database calls immediately...chizom
04/18/2022, 6:42 PMmrboutte
04/18/2022, 10:44 PMgaryaustin
04/19/2022, 1:46 AMmrboutte
04/19/2022, 1:58 AMmrboutte
04/19/2022, 2:00 AM<h2>Account Recovery</h2>
<p>The link below will automatically log you back into my Awesome app:</p>
<p>
<a
clicktracking="off"
href="{{ .SiteURL }}/member/sign-in/#recovery_token={{ .Token }}"
>click here to recover your account</a
>
</p>
the important parts here or {{ .SiteURL }}
and #recovery_token={{ .Token }}
mrboutte
04/19/2022, 2:00 AMmrboutte
04/19/2022, 2:03 AM{{ .SiteURL }}
comes from this settings pageInfrapuna
04/19/2022, 4:02 PMInfrapuna
04/19/2022, 4:03 PMif (env === "prod") {
const { data, error } = await supabase.auth.signIn({
email });
} else {
const { data, error } = await supabase.auth.signIn(
{ email },
{ redirectTo: "http://localhost:3000" }
);
}
Infrapuna
04/19/2022, 4:04 PMsilentworks
04/20/2022, 1:53 AMredirectTo
on the signIn is the way to go.garyaustin
04/20/2022, 2:13 AMgaryaustin
04/20/2022, 3:05 AMsilentworks
04/20/2022, 3:06 AMsilentworks
04/20/2022, 3:07 AMgaryaustin
04/23/2022, 1:37 AM