Last updated 18 days ago
Logs in a user and returns an access token.
Authentication request body
Username for authentication
Password for authentication
Successful Authentication
The access token returned after authentication.
const response = await fetch('https://api.monogoto.io/api/v1/auth/login', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "username": "text", "password": "text" }), }); const data = await response.json();
{ "access_token": "text" }