Sorry, no results found for "".
"foo@bar.com"
Password
"changeme"
Two-factor authentication one-time password
"123512"
Returns a resource object of type session
import { buildClient } from "@datocms/cma-client-node";
async function run() { const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const session = await client.session.create({ email: "foo@bar.com", password: "changeme", });
// Check the 'Returned output' tab for the result ☝️ console.log(session);}
run();
{ id: "eyJCJhbGci.eyJhaWwuY29tIn0.32wQOMci", user: { type: "account", id: "312" },}