Create
client.auth.token.create(TokenCreateParams { email, password } body, RequestOptionsoptions?): TokenCreateResponse { access, refresh }
POST/api/auth/token/
Takes a set of user credentials and returns an access and refresh JSON web token pair to prove the authentication of those credentials.
Parameters
Returns
Create
import OvermindLab from 'overmind-lab';
const client = new OvermindLab();
const token = await client.auth.token.create({ email: 'x', password: 'x' });
console.log(token.access);{
"access": "access",
"refresh": "refresh"
}Returns Examples
{
"access": "access",
"refresh": "refresh"
}