Invoke Error Banner in Login Flow

Hello Okta Team

For Login Flow, I want to show an error banner like this with a custom message
Is there a way to invoke this error banner? Like widget..showError(‘Custom msg’)?