reactjsreact-nativemobileoauth-2.0

How can I add Microsoft OAuth to my React Native mobile app?


I'm working on a mobile app that people will login with their Microsoft account. I searched a lot but couldn't find any documentation for MS OAuth. I would like to use libs that are still being developed and are not archived, but I couldn't find any.


Solution

  • To get started, you need to register your app in the Azure Portal, where you'll get a Client ID and set a redirect URI (for mobile, it’s usually a custom URI scheme like msal{clientId}://auth). For authentication, you should use platform-specific MSAL libraries:

    For React Native, a good community-maintained option is react-native-msal.