washday-sdk 0.0.198 → 0.0.199
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/dist/api/users/post.js +3 -1
- package/package.json +1 -1
- package/src/api/users/post.ts +4 -2
package/dist/api/users/post.js
CHANGED
|
@@ -12,7 +12,9 @@ const GET_SET_USER = 'api/users';
|
|
|
12
12
|
export const validateUserPin = function (data) {
|
|
13
13
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14
14
|
try {
|
|
15
|
-
const config = {
|
|
15
|
+
const config = {
|
|
16
|
+
headers: { Authorization: `Bearer ${this.apiToken}` }
|
|
17
|
+
};
|
|
16
18
|
return yield axiosInstance.post(`${GET_SET_USER}/validate-pin`, data, config);
|
|
17
19
|
}
|
|
18
20
|
catch (error) {
|
package/package.json
CHANGED
package/src/api/users/post.ts
CHANGED
|
@@ -4,11 +4,13 @@ import axiosInstance from "../axiosInstance";
|
|
|
4
4
|
const GET_SET_USER = 'api/users';
|
|
5
5
|
|
|
6
6
|
export const validateUserPin = async function (this: WashdayClientInstance, data: {
|
|
7
|
-
|
|
7
|
+
companyId: string,
|
|
8
8
|
pin: string
|
|
9
9
|
}): Promise<any> {
|
|
10
10
|
try {
|
|
11
|
-
const config = {
|
|
11
|
+
const config = {
|
|
12
|
+
headers: { Authorization: `Bearer ${this.apiToken}` }
|
|
13
|
+
};
|
|
12
14
|
return await axiosInstance.post(`${GET_SET_USER}/validate-pin`, data, config);
|
|
13
15
|
} catch (error) {
|
|
14
16
|
console.error('Error fetching validateUserPin:', error);
|