Securing React Native Apps with Asgardeo

How to Integrate Asgardeo with your React Native Apps for a Seamless Auth Experience

Pavindu Lakshan


Apple iPhone 6 and Vintage watch on a brown leather wallet

Asgardeo is an IDaaS platform that helps organizations simplify and secure their IAM processes. It offers a wide range of features, including SSO, social login, MFA, passwordless authentication, user management, and logging, making it a great option for organizations looking to simplify and secure their IAM processes.

React Native is an open-source cross-platform mobile development framework created by Meta Platforms, Inc. It is used to develop applications for Android, iOS, macOS, tvOS, Web, Windows, and UWP by enabling developers to use the React framework along with native platform capabilities.

In this guide, we will explore how to integrate Asgardeo into your React Native apps, using react-native-app-auth, a well know authentication SDK for React Native apps.

What are we going to build

We are going to build a super simple application that has login and logout capabilities. Our application will have two screens, one is public and the other one is private. Users will have to authenticate by proving their identity to access the private page. This protected page will also show the logged-in user’s information.

Create a new React Native project

The Official React Native Getting Started page contains the most up-to-date information on how to setup the development environment and creating a new React Native project. Follow the steps outlined there, based on the operating system and your targeted mobile platform.

Once you are up and running with the new React Native project, come back to this guide to follow the next steps.

Install dependencies

Stop the running metro server and run the following command in the project root to install the required dependencies.

npm install react-native-app-auth rn-secure-storage react-navigation --save

As Asgardeo conforms to the standard identity management specifications, you can use any standard SDK/library that implements standard identity protocols to…



Pavindu Lakshan

Software Engineer at WSO2 | Tech Blogger | Open-source Enthusiast - Views and opinions are strictly my own