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, select an MFA method, or select a sign-in option. Provide exactly one of fields, sso_button_selector, sso_provider, mfa_option_id, or sign_in_option_id.
Map of field name to value
Show child attributes
{
"email": "user@example.com",
"password": "secret"
}XPath selector for the SSO button to click (ODA). Use sso_provider instead for CUA.
"xpath=//button[contains(text(), 'Continue with Google')]"
SSO provider to click, matching the provider field from pending_sso_buttons (e.g., "google", "github"). Cannot be used with sso_button_selector.
"google"
The MFA method type to select (when mfa_options were returned)
"sms"
The sign-in option ID to select (when sign_in_options were returned)
"work-account"
Submission accepted for processing
Response from submitting field values
Whether the submission was accepted for processing