You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **LoginRadius Node JS SDK Change Log** provides information regarding what has changed, more specifically what changes, improvements and bug fix has been made to the SDK. For more details please refer to the [LoginRadius API Documention](https://docs.loginradius.com/api/v2/deployment/sdk-libraries/node-js-library)
3
3
4
+
# Version 11.1.0
5
+
Release on April 7, 2021
6
+
7
+
## Enhancements
8
+
9
+
- Added X-Origin-IP header support.
10
+
- Added 429 error code handling for "Too Many Request in a particular time frame".
11
+
12
+
13
+
## Added new multiple APIs for better user experience
14
+
15
+
- Get Profile By Ping.
16
+
- Passwordless Login Verification By Email And OTP.
17
+
- Passwordless Login Verification By User Name And OTP.
@@ -34,7 +34,7 @@ LoginRadius Combined Node SDK features a combined SDK set to encompass Social Lo
34
34
This document contains information and examples regarding the LoginRadius Node.js SDK. It provides guidance for working with social authentication, user profile data, and sending messages with a variety of social networks such as Facebook, Google, Twitter, Yahoo, LinkedIn, and more.
35
35
You can get the SDK from [here](http://github.com/LoginRadius/node-js-sdk)
36
36
37
-
Note: The latest version(11.0.0) of Node js SDK works with LoginRadius V2 APIs.
37
+
Note: The latest version(11.1.0) of Node js SDK works with LoginRadius V2 APIs.
38
38
39
39
Installation <br/>
40
40
run `npm install loginradius-sdk` <br/>
@@ -47,6 +47,7 @@ Create `var config` in project
47
47
apiSecret: '{{ Your API Secret }}',
48
48
siteName: '{{ Your Sitename }}',
49
49
apiRequestSigning: false,
50
+
originIp:"{{ Client Ip }}",
50
51
proxy:{
51
52
host:'',
52
53
port:'',
@@ -59,6 +60,16 @@ Replace the placeholders in the config object with your LoginRadius credentials
59
60
60
61
Pass the proxy configurations if you want to set Http Server Proxy Configuration through your NodeJs SDK. Host and port are required to set Http Server Proxy configuration (username and password are optional).
61
62
63
+
### X-Origin-IP
64
+
65
+
LoginRadius allows you to add X-Origin-IP in your headers and it determines the IP address of the client's request,this can also be useful to overcome analytics discrepancies where the analytics depend on header data.
66
+
67
+
```
68
+
originIp:"{{ Client Ip }}"
69
+
70
+
```
71
+
The originIp will be added in `var config`
72
+
62
73
Require the loginradius-sdk package and pass the config object
63
74
```
64
75
var lrv2 = require('loginradius-sdk')(config);
@@ -100,6 +111,7 @@ List of APIs in this Section:<br>
100
111
* GET : [Auth Read all Profiles by Token](#GetProfileByAccessToken-get-)<br>
101
112
* GET : [Auth Send Welcome Email](#SendWelcomeEmail-get-)<br>
102
113
* GET : [Auth Delete Account](#DeleteAccountByDeleteToken-get-)<br>
114
+
* GET : [Get Profile By Ping](#GetProfileByPing-get-)<br>
103
115
* GET : [Auth Check Email Availability](#CheckEmailAvailability-get-)<br>
104
116
* GET : [Auth Verify Email](#VerifyEmail-get-)<br>
105
117
* GET : [Auth Check UserName Availability](#CheckUserNameAvailability-get-)<br>
<h6id="GetProfileByPing-get-">Get Profile By Ping (GET)</h6>
867
+
This API is used to get a user's profile using the clientGuid parameter if no callback feature enabled. [More Info](https://www.loginradius.com/docs/api/v2/customer-identity-api/social-login/social-login-by-ping/)
868
+
869
+
870
+
871
+
```
872
+
873
+
var clientGuid = "<clientGuid>"; //Required
874
+
var emailTemplate = "<emailTemplate>"; //Optional
875
+
var fields = null; //Optional
876
+
var verificationUrl = "<verificationUrl>"; //Optional
877
+
var welcomeEmailTemplate = "<welcomeEmailTemplate>"; //Optional
This API is used to update a user's Uid. It will update all profiles, custom objects and consent management logs associated with the Uid. [More Info](https://www.loginradius.com/docs/api/v2/customer-identity-api/account/account-update/)
<h6id="PasswordlessLoginVerificationByEmailAndOTP-post-">Passwordless Login Verification By Email And OTP (POST)</h6>
4553
+
This API is used to verify the otp sent to the email when doing a passwordless login. [More Info](https://www.loginradius.com/docs/api/v2/customer-identity-api/passwordless-login/passwordless-login-verify-by-email-and-otp/)
<h6id="PasswordlessLoginVerificationByUserNameAndOTP-post-">Passwordless Login Verification By User Name And OTP (POST)</h6>
4577
+
This API is used to verify the otp sent to the email when doing a passwordless login. [More Info](https://www.loginradius.com/docs/api/v2/customer-identity-api/passwordless-login/passwordless-login-verify-by-username-and-otp/)
0 commit comments