Local domains ( and ) are whitelisted by default. Whitelist Domainįor security reasons, LoginRadius processes the API calls that are received from the whitelisted domains. Refer to this document for more information. In addition to Registration and Login actions, the Auth Page (IDX) supports more actions. Similarly, you can implement more features using Node.js SDK. The following displays a sample JSON response: In response, you will get a user profile in JSON format. Upon successful login, it will redirect you to the return url with the access token. Open your Auth Page(IDX) registration URL It will display the following screen: Run the API Server by executing the following command in the command line: Or you can use the path of the back end API as the return_url.Īdd the following API snippet to server.jsto get the user profile using the access token: If return_url is of frontend, pass the token to backend node API (eg: from the application. The following is an example of the access token in the query string with the Return URL: The return_url will access the Node.js backend API with query parameter (access token). Note: Once the authentication is done using Auth Page (IDX), the default script of LoginRadius sends an access token in the query string as a token parameter with the return_url. Return_url can be your website, frontend app, or backend server url where you are handling the access token. Whitelist your domain if you are not using Local Domain for this tutorial.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |