Spring Security provides a logout endpoint by default.
Once logged in, you can GET /logout
to see a default logout confirmation page, or you can POST /logout
to initiate logout
References:
https://docs.spring.io/spring-security/reference/reactive/authentication/logout.html