OAuth2 Mismatching redirect URI

And one else question.

If i used Simple Authentication via /api/method/login for custom login page in my react application.

How to i get bearer token after login? Or setting cookies samesite to none?

Because, after login i can’t get cookie sid for next request. The samesite cookies setting to lax.

My erpnext in azure cloud
My react frontend in my localhost for development mode

Thanks for your support. @revant_one