#582 — [Bug]: Pre-existing log in with google account fails when creating a user (POST /api/v1/partner/users)
Repo: Twill-AI/facade State: open | Status: open Assignee: meliascosta
Created: 2025-09-16 · Updated: 2025-10-02
Description
Steps to reproduce
- In staging open use a new google account and click on log in via google
- You should reach a “Not allowed” message
- But the account is nonetheless created on supabase
- Try adding that user to a partner account (from ui or by calling POST
/api/v1/partner/users) - You never get a reset password email
Expected behavior
I expected that flow to work ok.
Actual behavior
The account is left in an unusable state
How to fix:
We need to modify the POST /api/v1/partner/users route so that if the user already exists on supabase the user creation flow still works.
AC
- Flow has been modified
-
Tests have been added to check that this flow works correctly (not sure if it is possible because tests use mock auth)
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets