Optional
preventSet to true to prevent the api call result promise from ever resolving. Typically used when redirecting the window to a login page to prevent transient errors from happening in the page while the browser is loading the login page.
Optional
retryIf set to true the request will be retried and its AuthParams will be fetched again
Action to take when error occurs during authentication