Skip to content

User Authentication

Compare
Choose a tag to compare
@louisbirla louisbirla released this 11 Jan 00:23
· 444 commits to main since this release

This release adds 2 queries and 3 new mutations:

Queries:

  • userCount returns the number of users
  • userById returns a user from their ID
  • whoami returns the user based on authorization header

Mutations:

  • signup starts creating a user, and sends a verification email
  • confirmEmail verifies the email and creates the user
  • login returns an authentication payload if the username and password provided match a user