Page Contents

Home > @loopback/authentication > AuthenticationOptions > failOnError

AuthenticationOptions.failOnError property

This flag allows an authentication strategy to abort the authentication by throwing an error if failOnError is set to true. By default, the authentication process continues to the next one even when a strategy throws an error. If one of other strategies succeed, the error will be discarded.

Signature:

failOnError?: boolean;