@gandalan/weblibs 1.0.11 → 1.0.12
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/api/authUtils.js +2 -1
- package/package.json +1 -1
package/api/authUtils.js
CHANGED
|
@@ -39,7 +39,8 @@ export function jwtTokenInvalid(settings)
|
|
|
39
39
|
|
|
40
40
|
export async function jwtTokenRenew(settings)
|
|
41
41
|
{
|
|
42
|
-
|
|
42
|
+
const renewSettings = { ...settings, jwtToken : undefined };
|
|
43
|
+
let api = new RESTClient(renewSettings);
|
|
43
44
|
const payload = { "Token" : settings.jwtRefreshToken };
|
|
44
45
|
const response = await api.put("LoginJwt/Refresh", payload);
|
|
45
46
|
settings.jwtToken = response.data;
|