wooden-finland-38637
06/02/2022, 2:19 PM/self-service/login/browser
we get csrf_token
(lets call it as csrf 1) in the response body which we need to send back.
We resend this csrf_token
back in POST request to /self-service/login?flow=xxxxx
.
But when there is some error in the POST request (e.g: invalid password) then we get another csrf_token
(csrf 2) in the response body. After then when we make a POST request with same flow id and with old csrf_token
(csrf 1) and valid credentials then request will be success. So my question is what is the use of (csrf 2)