react-auth-kit
Advanced tools
Comparing version 3.0.0-alpha.32 to 3.0.0-alpha.33
{ | ||
"name": "react-auth-kit", | ||
"version": "3.0.0-alpha.32", | ||
"version": "3.0.0-alpha.33", | ||
"description": "Authentication Library for React, which makes Token based auth very easy", | ||
@@ -90,3 +90,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "03b4f6736001b4f2ebef63bca624b4e3748159d1" | ||
"gitHead": "8469a8153e8c123ba154b1a914aaf1884c5e1e70" | ||
} |
@@ -378,22 +378,16 @@ "use strict"; | ||
console.log("Remove Refresh Cookie is called"); | ||
_jsCookie.default.remove(this.authStorageName, { | ||
domain: this.cookieDomain, | ||
secure: this.cookieSecure | ||
}); | ||
_jsCookie.default.remove(this.authStorageTypeName, { | ||
domain: this.cookieDomain, | ||
secure: this.cookieSecure | ||
}); | ||
_jsCookie.default.remove(this.stateStorageName, { | ||
domain: this.cookieDomain, | ||
secure: this.cookieSecure | ||
}); | ||
if (this.isUsingRefreshToken && !!this.refreshTokenName) { | ||
_jsCookie.default.remove(this.refreshTokenName, { | ||
domain: this.cookieDomain, | ||
secure: this.cookieSecure | ||
}); | ||
} | ||
}; | ||
removeRefreshToken = () => { | ||
console.log("Remove Refresh Token is called"); | ||
localStorage.removeItem(this.authStorageName); | ||
localStorage.removeItem(this.authStorageTypeName); | ||
localStorage.removeItem(this.stateStorageName); | ||
if (this.isUsingRefreshToken && !!this.refreshTokenName) { | ||
localStorage.removeItem(this.refreshTokenName); | ||
} | ||
}; | ||
} | ||
var _default = exports.default = TokenObject; |
56014
1319