Login

Endpoint for authentication.

GET /sanctum/csrf-cookie

This method is used to initialize the Sanctum cookie. The cookie must be attached to each future request that requires an authenticated user (axios can do this automatically).

Login

POST /api/v1/internal/login

This endpoint allows you to authenticate a user. It must be called after successfully initializing the Sanctum cookie.

Request Body

Name
Type
Description

password

string

The password of the user

email

string

The email of the user

{    "name": "Cake's name",    "recipe": "Cake's recipe name",    "cake": "Binary cake"}

Last updated

Was this helpful?