Prompt user for credentials (handle and password).
Uses two-step input process:
Either step can be cancelled, which cancels the entire flow.
Credentials object, or undefined if cancelled
const creds = await promptForCredentials();if (creds) { await login(creds.handle, creds.password);} else { console.log('Login cancelled');} Copy
const creds = await promptForCredentials();if (creds) { await login(creds.handle, creds.password);} else { console.log('Login cancelled');}
Prompt user for credentials (handle and password).
Uses two-step input process:
Either step can be cancelled, which cancels the entire flow.