react-auth-kit
Advanced tools
Comparing version 3.0.0-alpha.31 to 3.0.0-alpha.32
{ | ||
"name": "react-auth-kit", | ||
"version": "3.0.0-alpha.31", | ||
"version": "3.0.0-alpha.32", | ||
"description": "Authentication Library for React, which makes Token based auth very easy", | ||
@@ -90,3 +90,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "d90714fa8fc877000025a555d08f70f47ecad3bc" | ||
"gitHead": "03b4f6736001b4f2ebef63bca624b4e3748159d1" | ||
} |
@@ -93,2 +93,3 @@ "use strict"; | ||
initialToken_ = () => { | ||
console.log("initialToken_ is called"); | ||
if (this.authStorageType === 'cookie') { | ||
@@ -101,2 +102,3 @@ return this.initialCookieToken_(); | ||
initialCookieToken_ = () => { | ||
console.log("initialCookieToken_ is called"); | ||
const authToken = _jsCookie.default.get(this.authStorageName); | ||
@@ -109,2 +111,3 @@ const authTokenType = _jsCookie.default.get(this.authStorageTypeName); | ||
initialLSToken_ = () => { | ||
console.log("initialLSToken_ is called"); | ||
const authToken = localStorage.getItem(this.authStorageName); | ||
@@ -117,2 +120,3 @@ const authTokenType = localStorage.getItem(this.authStorageTypeName); | ||
checkTokenExist_ = (authToken, authTokenType, stateCookie, refreshToken) => { | ||
console.log("checkTokenExist_ is called"); | ||
try { | ||
@@ -302,2 +306,3 @@ let refresh; | ||
removeAllToken = () => { | ||
console.log("Remove all token is called"); | ||
if (this.authStorageType === 'cookie') { | ||
@@ -310,2 +315,3 @@ this.removeAllCookieToken_(); | ||
removeAllCookieToken_ = () => { | ||
console.log("Remove all cookie token is called"); | ||
_jsCookie.default.remove(this.authStorageName, { | ||
@@ -331,2 +337,3 @@ domain: this.cookieDomain, | ||
removeAllLSToken_ = () => { | ||
console.log("Remove all ls token is called"); | ||
localStorage.removeItem(this.authStorageName); | ||
@@ -340,2 +347,3 @@ localStorage.removeItem(this.authStorageTypeName); | ||
removeAuth = () => { | ||
console.log("Remove Auth is called"); | ||
if (this.authStorageType === 'cookie') { | ||
@@ -348,2 +356,3 @@ this.removeAuthCookie(); | ||
removeAuthCookie = () => { | ||
console.log("Remove Auth Cookie is called"); | ||
_jsCookie.default.remove(this.authStorageName, { | ||
@@ -363,2 +372,3 @@ domain: this.cookieDomain, | ||
removeAuthToken = () => { | ||
console.log("Remove Auth Token is called"); | ||
localStorage.removeItem(this.authStorageName); | ||
@@ -369,2 +379,3 @@ localStorage.removeItem(this.authStorageTypeName); | ||
removeRefresh = () => { | ||
console.log("Remove Refresh is called"); | ||
if (this.authStorageType === 'cookie') { | ||
@@ -377,2 +388,3 @@ this.removeRefreshCookie(); | ||
removeRefreshCookie = () => { | ||
console.log("Remove Refresh Cookie is called"); | ||
_jsCookie.default.remove(this.authStorageName, { | ||
@@ -392,2 +404,3 @@ domain: this.cookieDomain, | ||
removeRefreshToken = () => { | ||
console.log("Remove Refresh Token is called"); | ||
localStorage.removeItem(this.authStorageName); | ||
@@ -394,0 +407,0 @@ localStorage.removeItem(this.authStorageTypeName); |
56228
1325