authscape 1.0.646 → 1.0.648
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 +9 -5
- package/package.json +1 -1
- package/src/services/authService.js +6 -1
package/index.js
CHANGED
|
@@ -8853,18 +8853,22 @@ var authService = function authService() {
|
|
|
8853
8853
|
}(),
|
|
8854
8854
|
inviteUser: function () {
|
|
8855
8855
|
var _inviteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(inviteRequest) {
|
|
8856
|
-
var inviteRequests, response;
|
|
8856
|
+
var inviteRequests, host, response;
|
|
8857
8857
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
8858
8858
|
while (1) switch (_context3.prev = _context3.next) {
|
|
8859
8859
|
case 0:
|
|
8860
8860
|
inviteRequests = [];
|
|
8861
8861
|
inviteRequests.push(inviteRequest);
|
|
8862
|
-
|
|
8863
|
-
|
|
8864
|
-
|
|
8862
|
+
host = window.location.protocol + "//" + window.location.host;
|
|
8863
|
+
_context3.next = 5;
|
|
8864
|
+
return apiService().post(process.env.authorityUri + "/Invite/InviteUsers", {
|
|
8865
|
+
requests: inviteRequests,
|
|
8866
|
+
host: host
|
|
8867
|
+
});
|
|
8868
|
+
case 5:
|
|
8865
8869
|
response = _context3.sent;
|
|
8866
8870
|
return _context3.abrupt("return", response);
|
|
8867
|
-
case
|
|
8871
|
+
case 7:
|
|
8868
8872
|
case "end":
|
|
8869
8873
|
return _context3.stop();
|
|
8870
8874
|
}
|
package/package.json
CHANGED
|
@@ -53,9 +53,14 @@ export const authService = () => {
|
|
|
53
53
|
let inviteRequests = [];
|
|
54
54
|
inviteRequests.push(inviteRequest);
|
|
55
55
|
|
|
56
|
+
var host = window.location.protocol + "//" + window.location.host;
|
|
57
|
+
|
|
56
58
|
let response = await apiService().post(
|
|
57
59
|
process.env.authorityUri + "/Invite/InviteUsers",
|
|
58
|
-
|
|
60
|
+
{
|
|
61
|
+
requests: inviteRequests,
|
|
62
|
+
host: host
|
|
63
|
+
}
|
|
59
64
|
);
|
|
60
65
|
|
|
61
66
|
return response;
|