The following documentation is applicable to Free, Developer, and Developer Pro plans. For documentation related to the enterprise plan, please click here.

Get Started - Vue.js

The tutorial lets you implement LoginRadius user registration, login, and view profile on your Vue.js based application.

Create an account to get started if you don't have one yet!

When you signed up for the LoginRadius account, it created an app for you. This app is linked to a ready to use web page - Auth Page (IDX).

Auth Page (IDX) reflects the configuration changes that you make in LoginRadius Dashboard. You can utilize this webpage for authentication requirements on your application.

Choose Theme

LoginRadius provides the functionality where you can select a design theme for your login page or further customize the content displayed.

In your LoginRadius Dashboard, select your app, then navigate to the Auth Page (IDX) section located in the left navigation bar and click the Theme Customization section. There you can select a design theme for your login page or further customize the content displayed:


To preview your login page's theme, click the Go to your Login Page link highlighted on the above screen.

Features like Email and Password login, User registration, Forgot password, and Remember me are already configured on your Auth Page(IDX).

Get Credentials

Before using any of the APIs or Methods that LoginRadius provides, you need to get your App Name, API Key, and API Secret.

In your LoginRadius Dashboard, navigate to Configuration > API Credentials and click the API Key And Secret subsection to retrieve your API Credentials.


Set Up Vue.js Project

Install Node.js

Before running a Vue.js app locally, we need NodeJS. NodeJS framework helps in executing JS code without browser.

Follow these guides to setup NodeJS on your PC:

After installation, (re)start your terminal and type npm -v. You might see a version number displayed in your terminal such as:


NodeJS is successfully installed and now we'll use npm (Node packet manager) to install Vue.js.

Install Vue.js

In the terminal type following command :

npm install -g @vue/cli

Configure Registration and Login URLs

This tutorial uses Auth Page(IDX) for authentication, where Registration and Login functionality is already implemented.

Navigate your Register or Login links or buttons to the following URLs:

Registration Page URL:

https://<LoginRadius APP Name><Return URL>

Login Page URL:

https://<LoginRadius APP Name><Return URL>


  • LoginRadius App Name is the name of your app as mentioned in the Get Credentials step.
  • return_url is where you want to redirect users upon successful registration or login. Whitelist your domain if you are not using Local Domain for this tutorial.

return_url can be your website, frontend app, or backend server url where you are handling the access token.

Run Vue.js LoginRadius SDK Demo and See Results

This section explains the steps included in the setup of the Vue.JS demo and how to run the demo.

  1. Clone the Vue demo from GitHub Repo here

  2. Install the dependencies by typing npm install on your command-line interface.

  3. Configure your LoginRadius Credentials in "/src/assets/options.js"


  1. Run the demo on localhost port 8080 by typing npm run dev into your command-line interface.

  2. This will open your demo on your default browser.


  1. Create a user by clicking on Register Here, upon successful user creation you'll be redirected to Login page


  1. Log in. Upon successful login, it will redirect you to the return url with the access token. In response, you will get a user profile in JSON format. Open Developer Tools in your browser, navigate to Console and you'll find a JSON response. The following displays a sample JSON response:



Features Implemented in the Demo

Below is the list of features that are included in this demo.

  1. Login
  2. Register
  3. Resend Email Verification
  4. Social Login

Whitelist Domain

For security reasons, LoginRadius processes the API calls that are received from the whitelisted domains. Local domains (http://localhost and are whitelisted by default.

To whitelist your domain, in your LoginRadius Dashboard, navigate to Configuration > Whitelist Your Domain and add your domain name:


Node-js SDK Reference

Node-js SDK

API Reference


Go Back to Home Page

Was this article helpful?

Have more questions? Submit a request