#539 — Fix reset password for Partner Portal

Repo: Twill-AI/twill-ai-ui State: closed | Status: done Assignee: Unassigned

Created: 2025-07-31 · Updated: 2025-09-15

Description

STR:

Expected: Pressing “Reset your Password” in email should open page asking for a password.

Actual: Pressing “Reset your Password” in email opens https://afde-stg-twill-eastus-hxhka3a7ecdqddcw.z03.azurefd.net without any authentication.

Investigation details

  1. supabase.auth.resetPasswordForEmail in front-end app was called with wrong URL, fixed in https://github.com/Twill-AI/twill-ai-ui/pull/540
  2. Supabase can’t redirect to any URL, it always wants to redirect on “siteUrl”, i.e. on https://afde-stg-twill-eastus-hxhka3a7ecdqddcw.z03.azurefd.net in staging and https://my.twillai.com in prod.
  3. twill-ai-ui in “dev” branch can’t prepare artifacts for Azure Frontdoor so created https://github.com/Twill-AI/twill-ai-ui/pull/541
  4. Current “reset-password” page can’t be opened without “tenant” information. So replaced it to “(quest)” routing group in scope of https://github.com/Twill-AI/twill-ai-ui/pull/542. Merged to “main” to deploy on Azure Frontdoor in https://github.com/Twill-AI/twill-ai-ui/pull/543.
  5. GuestRouter logic was updated to handle “reset-password” page differently (i.e. don’t redirect to dashboard) and to track difference with regular TwillAI via existence of role for the user.
  6. Reset password page validation was changed, slow validation was improved (tens folds)

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets