Skip to content

AUTH-7 User server actions#10

Open
wlenig wants to merge 5 commits intomainfrom
AUTH-7
Open

AUTH-7 User server actions#10
wlenig wants to merge 5 commits intomainfrom
AUTH-7

Conversation

@wlenig
Copy link
Copy Markdown
Collaborator

@wlenig wlenig commented Apr 9, 2026

Created lib/users.ts with:

  • createUser(supabaseUserId) — create a user record linked to a Supabase auth user
  • getUser(id, includeEmail?) — get a user by SGA user ID, optionally include Supabase auth email
  • getUsers(filters?) — list all users, optional isAdmin filter
  • updateUser(id, data) — update user fields (e.g. toggle isAdmin)
  • deleteUser(id) — delete from users table and from auth.users via service role

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant