[AuthenticationServices] Problems with CSRF token during OAuth login

Hi there,

We are using the AuthenticationServices framework in our app to make it possible for users to sign in to their account via an OAuth2 flow.

It happens sometimes that the login page, which opens in the in-app browsers via the AuthenticationServices, do not handle the CSRF token correctly resulting in that the user is unable to log in. The form will reject the POST-request since the CSRF token is incorrect.

Does someone have experience with this or, even better, a solution? :-)