react-auth-kit
Advanced tools
Comparing version 3.0.0-alpha.23 to 3.0.0-alpha.24
{ | ||
"name": "react-auth-kit", | ||
"version": "3.0.0-alpha.23", | ||
"version": "3.0.0-alpha.24", | ||
"description": "Authentication Library for React, which makes Token based auth very easy", | ||
@@ -90,3 +90,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "574514a551ccfdcfbf91d451310bdd997093a20f" | ||
"gitHead": "fe1d6a1dfe2d3643aa8bf957a995c42f9ff5ef76" | ||
} |
@@ -229,4 +229,2 @@ "use strict"; | ||
console.log("Sync Token is Called"); | ||
console.log(authState); | ||
console.log(this); | ||
if (!!authState.auth) { | ||
@@ -244,2 +242,3 @@ this.setAuthToken(authState.auth.token, authState.auth.type, authState.userState); | ||
setAuthToken = (authToken, authTokenType, authState) => { | ||
console.log('Setting Auth Token ' + this.authStorageType); | ||
if (this.authStorageType === 'cookie') { | ||
@@ -273,2 +272,3 @@ const expiresAt = this.getExpireDateTime_(authToken); | ||
setRefreshToken = refreshToken => { | ||
console.log('Setting Refresh Token ' + this.authStorageType); | ||
if (this.authStorageType === 'cookie') { | ||
@@ -275,0 +275,0 @@ if (this.isUsingRefreshToken && !!this.refreshTokenName && !!refreshToken) { |
71831