Go To Dashboard


This guide will show you how to implement the user authentication in a iOS application . For this tutorial, we will use the iOS demo from GitHub and show you step by step how to run it.


This tutorial assumes you have:

Setup Your Dashboard

Get your credentials and whitelist your application domain as explained in this section. This is a mandatory step to successfully implement and run the demo.

Generating your SOTT:

You will need to pass a SOTT value at the time of registration. You can generate this in the Configuration section of your Dashboard.

To access Secure Mobile OTP Token configuration, login to your LoginRadius Dashboard account, from the left navigation panel, click the Configuration and then navigate to the API Credentials section.

Click the down arrow or anywhere within the section and Open the Secure Mobile OTP Token subsection, the below screen will appear:


Start with demo

  1. You can clone the demo repository on your system using below commands:

    With SSH

    git clone git@github.com:LoginRadius/ios-sdk.git

    With https

    git clone https://github.com/LoginRadius/ios-sdk.git
  2. Now install demo in your Xcode Studio.

  3. Install the SDK via CocoaPods

To create Pod file run the following command in terminal

$ pod init

To integrate LoginRadiusSDK into your Xcode project using CocoaPods, specify it in your Podfile:

  source 'https://github.com/CocoaPods/Specs.git'
  platform :ios, '9.0'

  target 'TargetName' do
  pod 'LoginRadiusSDK', '~> 5.4.1'

Then, run the following command:

  pod install
  1. Create a plist file named LoginRadius.plist and add the following code.
  <string>Enter your loginradius api key</string>
  <string>Enter your loginradius site name</string>
  1. In Xcode, right-click on your project's .plist file and select Open As -> Source Code.Default plist is usually your Info.plist file
  2. Insert the value for url scheme with this.
<Your site name>.<Your Bundle Identifier>
  1. Run your project

Features implemented in demo

  • Login
  • Registration
  • Email Verification
  • Forgot Password
  • Reset Password

Discover More

Discover More on

How To Guides

Edit on GitHub