react-auth-kit
Advanced tools
Comparing version 3.0.0-alpha.22 to 3.0.0-alpha.23
{ | ||
"name": "react-auth-kit", | ||
"version": "3.0.0-alpha.22", | ||
"version": "3.0.0-alpha.23", | ||
"description": "Authentication Library for React, which makes Token based auth very easy", | ||
@@ -90,3 +90,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "d4d24e74a78faefc742f2d6b9a4b8d18be246f1d" | ||
"gitHead": "574514a551ccfdcfbf91d451310bdd997093a20f" | ||
} |
@@ -22,5 +22,11 @@ "use strict"; | ||
this.authSubject = new _rxjs.BehaviorSubject(this.initialToken_()); | ||
this.subscribe(this.syncTokens, err => { | ||
console.log("Error Happened"); | ||
console.log(err); | ||
this.authSubject.subscribe({ | ||
next: this.syncTokens, | ||
complete: () => { | ||
console.log("Token Synced"); | ||
}, | ||
error: err => { | ||
console.error("Error Occured while syncing token"); | ||
console.log(err); | ||
} | ||
}); | ||
@@ -27,0 +33,0 @@ } |
71753
1826