import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const submitFieldsResponse = await client.auth.connections.submit('id');
console.log(submitFieldsResponse.accepted);{
"accepted": true
}Submits field values for the login form. Poll the auth connection to track progress and get results.
import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const submitFieldsResponse = await client.auth.connections.submit('id');
console.log(submitFieldsResponse.accepted);{
"accepted": true
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Auth connection ID
Request to submit field values, click an SSO button, or select an MFA method. Provide exactly one of fields, sso_button_selector, or mfa_option_id.
Map of field name to value
Show child attributes
{
"email": "user@example.com",
"password": "secret"
}Optional XPath selector if user chose to click an SSO button instead
"xpath=//button[contains(text(), 'Continue with Google')]"
Optional MFA option ID if user selected an MFA method
"sms"
Submission accepted for processing
Response from submitting field values
Whether the submission was accepted for processing