GetToken

Get a token

Get a token from Laminar Auth

POSThttps://api.laminar.run/auth/getToken
Body
username*string
password*string
Response

Successful token retrieval

Body
token*string
token_type*string
expires_in*integer (int32)
refresh_tokenstring
Request
const response = await fetch('https://api.laminar.run/auth/getToken', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "password": "text",
      "username": "text"
    }),
});
const data = await response.json();
Response
{
  "token": "text",
  "token_type": "text",
  "refresh_token": "text"
}