Browse the Help Center for platform guides or API & Developers for integration docs.
curl --request POST \
--url https://open.beatpass.ca/api/v1/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]",
"password": "password",
"token_name": "iphone 12"
}
'{
"status": "success",
"user": {
"id": 123,
"display_name": "<string>",
"avatar": "<string>"
}
}Logs in the specified user and creates a session. Returns the user object. For SPA authentication, first call /sanctum/csrf-cookie to get a CSRF token, then include it in the X-XSRF-TOKEN header. Session cookies are automatically managed by the browser.
curl --request POST \
--url https://open.beatpass.ca/api/v1/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]",
"password": "password",
"token_name": "iphone 12"
}
'{
"status": "success",
"user": {
"id": 123,
"display_name": "<string>",
"avatar": "<string>"
}
}Was this page helpful?