authly-me 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +10 -2
- package/package.json +1 -1
- package/config.js +0 -7
package/index.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
// Authly - A Node.js SDK for Authly API
|
|
2
|
+
|
|
1
3
|
const axios = require('axios');
|
|
2
|
-
|
|
4
|
+
|
|
5
|
+
// ------------- Configurations -------------
|
|
6
|
+
const app_key_header = "App-Key";
|
|
7
|
+
const config = {
|
|
8
|
+
app_key_header
|
|
9
|
+
};
|
|
10
|
+
// ---------------------------------------------
|
|
3
11
|
|
|
4
12
|
class Authly {
|
|
5
13
|
|
|
@@ -123,7 +131,7 @@ class Authly {
|
|
|
123
131
|
throw new Error('Email is required');
|
|
124
132
|
}
|
|
125
133
|
|
|
126
|
-
if (!private_data
|
|
134
|
+
if (!private_data) {
|
|
127
135
|
throw new Error('Private Data is required');
|
|
128
136
|
}
|
|
129
137
|
|
package/package.json
CHANGED