In this tutorial, we will set up a React Native application to work with OAuth. We’ll use FusionAuth for auth, but the React Native code should work with any OAuth compliant server.

First, we’ll be installing and configuring FusionAuth. Then we’ll set up a React Native project. We’ll then perform an Authorization Code grant from within the React Native app. Finally, we’ll request information from an OIDC endpoint. With that data, we’ll display the user’s email in the React Native application.

This is a lot, but the ride will be fun. Ready to get going?

Requirements

Here’s what you need to get started:

  • NodeJS version >= 8.0
  • VScode or any other text editor
  • git
  • npx
  • Xcode, if building for iOS
  • Homebrew (optional)

#react-native #security #oauth

How to Set up a React Native Application to Work with OAuth
2.30 GEEK