1
Keep generated links inside our app's domain?
Source: supabase/supabase#956 · opened by @burggraf
I have a problem with the auth workflow from a security / trust standpoint.
Let's say I create a new app at my brand new domain: BUY-MY-WIDGETS.COM.
1. User goes to my domain and sees a nice "sign up screen" and puts in their email address and password. So far so good.
2. Now, the user gets some sketchy looking emails from a domain they don't recognize:
3. The user now bails, because they barely trust BUY-MY-WIDGETS.COM, and now I'm asking them to send their browser to God-knows-where.
Ideally, the signup flow should send them to a URL within my own domain. Additionally, the link should be kept as short as possible, so it's easy for a user to inspect for phishing attempts, etc.
Could I generate these links and store them in a table in my database, then write a front-end process to simply read a UUID, look it up in the table, then redirect the app to the stored supabase.co domain?
Is there a better way to cleanly handle this?
Let's say I create a new app at my brand new domain: BUY-MY-WIDGETS.COM.
1. User goes to my domain and sees a nice "sign up screen" and puts in their email address and password. So far so good.
2. Now, the user gets some sketchy looking emails from a domain they don't recognize:
3. The user now bails, because they barely trust BUY-MY-WIDGETS.COM, and now I'm asking them to send their browser to God-knows-where.
Ideally, the signup flow should send them to a URL within my own domain. Additionally, the link should be kept as short as possible, so it's easy for a user to inspect for phishing attempts, etc.
Could I generate these links and store them in a table in my database, then write a front-end process to simply read a UUID, look it up in the table, then redirect the app to the stored supabase.co domain?
Is there a better way to cleanly handle this?
No pledges yet. Be the first to back this.
Comments
Similar requests
Support for PostgreSQL Domain Types in Supabase UI
4 votes · 0 comments
Generated TypeScript Types - Add type safe to Tables
2 votes · 0 comments
Proposal to Include Custom Domain in Paid Supabase Plans
5 votes · 0 comments
Feature Request: Add Copy & Paste Functionality for Generated Types in Supabase Dashboard
3 votes · 0 comments
Function recognition in input fields
1 vote · 0 comments
No comments yet.