authscape 1.0.160 → 1.0.161

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 CHANGED
@@ -2279,16 +2279,33 @@ var authService = function authService() {
2279
2279
  }
2280
2280
  window.location.href = url;
2281
2281
  },
2282
+ manageAccount: function () {
2283
+ var _manageAccount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
2284
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
2285
+ while (1) switch (_context3.prev = _context3.next) {
2286
+ case 0:
2287
+ window.location.href = process.env.AUTHORITYURI + "/Identity/Account/Manage";
2288
+ case 1:
2289
+ case "end":
2290
+ return _context3.stop();
2291
+ }
2292
+ }, _callee3);
2293
+ }));
2294
+ function manageAccount() {
2295
+ return _manageAccount.apply(this, arguments);
2296
+ }
2297
+ return manageAccount;
2298
+ }(),
2282
2299
  logout: function () {
2283
- var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
2300
+ var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
2284
2301
  var redirectUri,
2285
2302
  AuthUri,
2286
2303
  cookieDomain,
2287
- _args3 = arguments;
2288
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
2289
- while (1) switch (_context3.prev = _context3.next) {
2304
+ _args4 = arguments;
2305
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
2306
+ while (1) switch (_context4.prev = _context4.next) {
2290
2307
  case 0:
2291
- redirectUri = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : null;
2308
+ redirectUri = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : null;
2292
2309
  AuthUri = process.env.AUTHORITYURI;
2293
2310
  cookieDomain = process.env.cookieDomain;
2294
2311
  (0, _nookies.destroyCookie)({}, "access_token", {
@@ -2315,9 +2332,9 @@ var authService = function authService() {
2315
2332
  }, 500);
2316
2333
  case 7:
2317
2334
  case "end":
2318
- return _context3.stop();
2335
+ return _context4.stop();
2319
2336
  }
2320
- }, _callee3);
2337
+ }, _callee4);
2321
2338
  }));
2322
2339
  function logout() {
2323
2340
  return _logout.apply(this, arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.160",
3
+ "version": "1.0.161",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -76,6 +76,11 @@ export const authService = () => {
76
76
 
77
77
  window.location.href = url;
78
78
  },
79
+ manageAccount: async () => {
80
+
81
+ window.location.href = process.env.AUTHORITYURI + "/Identity/Account/Manage";
82
+
83
+ },
79
84
  logout: async (redirectUri = null) => {
80
85
 
81
86
  let AuthUri = process.env.AUTHORITYURI;