authscape 1.0.22 → 1.0.27
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/package.json +1 -1
- package/services/authService.js +6 -5
package/package.json
CHANGED
package/services/authService.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import querystring from 'querystring';
|
|
2
|
+
import { destroyCookie } from 'nookies';
|
|
4
3
|
|
|
5
4
|
const authService = () => {
|
|
6
5
|
|
|
@@ -61,6 +60,8 @@ const authService = () => {
|
|
|
61
60
|
},
|
|
62
61
|
signUp: (redirectUrl = null) => {
|
|
63
62
|
|
|
63
|
+
let AuthUri = process.env.AUTHORITYURI;
|
|
64
|
+
|
|
64
65
|
let url = "";
|
|
65
66
|
if (redirectUrl == null)
|
|
66
67
|
{
|
|
@@ -80,19 +81,19 @@ const authService = () => {
|
|
|
80
81
|
let AuthUri = process.env.AUTHORITYURI;
|
|
81
82
|
let cookieDomain = process.env.cookieDomain;
|
|
82
83
|
|
|
83
|
-
destroyCookie(
|
|
84
|
+
destroyCookie({}, "access_token", {
|
|
84
85
|
maxAge: 2147483647,
|
|
85
86
|
path: '/',
|
|
86
87
|
domain: cookieDomain
|
|
87
88
|
});
|
|
88
89
|
|
|
89
|
-
destroyCookie(
|
|
90
|
+
destroyCookie({}, "refresh_token", {
|
|
90
91
|
maxAge: 2147483647,
|
|
91
92
|
path: '/',
|
|
92
93
|
domain: cookieDomain
|
|
93
94
|
});
|
|
94
95
|
|
|
95
|
-
destroyCookie(
|
|
96
|
+
destroyCookie({}, "expires_in", {
|
|
96
97
|
maxAge: 2147483647,
|
|
97
98
|
path: '/',
|
|
98
99
|
domain: cookieDomain
|