@vasrefil/api-toolkit 1.0.40 → 1.0.41

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.
@@ -28,7 +28,8 @@ class UserAuthMidWare_ extends _root_service_1.RootService {
28
28
  const baseurl = env_1.default.VASREFIL.BASEURL;
29
29
  const headers = {
30
30
  Authorization: req.headers.authorization,
31
- 'pin-token': req.headers['pin-token']
31
+ 'pin-token': req.headers['pin-token'],
32
+ 'x-service-name': env_1.default.SERVICE_NAME,
32
33
  };
33
34
  const { data } = await axios_1.default.get(`${baseurl}/users/details`, { headers });
34
35
  return { user: data.data.user };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vasrefil/api-toolkit",
3
3
  "description": "This is Vasrefil API toolkit",
4
- "version": "1.0.40",
4
+ "version": "1.0.41",
5
5
  "author": "Sodiq Alabi",
6
6
  "main": "dist/public-api.js",
7
7
  "types": "dist/public-api.d.ts",