FastAPI: React native frontend giving 422 error during auth flow
My react native code: const signin = (dispatch) => async ({ username, password }) => { try { console.log(username, password); const response = await tracker.post( "/login", (data = { username, password }), (headers = { "content-type": "application/x-www-form-urlencoded", }) ); await…