Oauth code flow : How to Relaunch Angular SPA After OAuth Authentication in Browser Redirect
I have an Angular application, a gateway, and a service. The Angular app makes calls to the service via the gateway, which uses Spring Security 6. When the user is not authenticated, a 401 Unauthorized status code is returned. The Angular app intercepts this and starts the OAuth flow in the browser