Skip to content

Add trigger to create new users in public.users when auth.users table added to #72

@gabestein

Description

@gabestein

If I understand correctly, I think you could query the user by email via prisma, since we're duplicating supabase auth users in the public.auth.

Nm, I see. I think the right way to do this is to setup a trigger that automatically creates the user in public.auth. That's what supabase, etc., recommend, and I'm not sure why we're only doing an update trigger. I'll add this next week.

Originally posted by @gabestein in https://github.com/pubpub/v7/issues/71#issuecomment-1710591738

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions