Hello @Amit Goyal,
Thank you for posting your query on Microsoft Q&A.
Based on your description, it seems you may be experiencing an issue with the redirect URI when using Microsoft social sign-in in your app. The redirect URI is used to return users to your app after they authenticate with Microsoft Entra ID.
When running your app locally, the redirect URI is likely set to a local URI specific to your development environment. However, once you upload the app to the Play Store and install it on a device, the redirect URI might differ.
To resolve this, please ensure that the redirect URI in your app matches the one registered with Microsoft Entra ID. Here’s how:
- Go to the Azure portal and navigate to Microsoft Entra ID, select App registrations, locate the application registration by using the application ID, and then open the app registration page.
- Under "Authentication", ensure that the redirect URI matches the URI that is being used in your app.
- If the redirect URI is incorrect, update it to match the URI that is being used in your app.
- Save the changes and rebuild your app.
- Upload the updated app to the Play Store and download it onto a device.
- Test the social sign-in functionality to ensure that it is working correctly.
Note: The redirect URI must be an exact match. If it doesn’t match exactly, you may see an error similar to the one you mentioned.
For more details, refer to this document: Error code AADSTS50011: Redirect URI mismatch.
I hope this information is helpful. Please feel free to reach out if you have any further questions.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Thanks,
Raja Pothuraju.