Auth
User

Creates a local user for testing.The user can have any specified roles in the request and the returned cookies can be used for subsequent requests acting as this new user. Note that this endpoint is only exposed in a local environment.

Changed on
post/auth/register

Request

  • Base URL
    http://localhost:3001/api
  • URL
    http://localhost:3001/api/auth/register
  • Auth
    none declared

Request body

namestring nullable

Full name of the user if provided by the OAuth provider

emailstring email required
googleIDstring

Unique identifier for the google account of the user

Example request

{
  "name": "John Doe",
  "email": "foo@bar.com"
}

Response

OK

object required

Changes