remove old code from token service
This commit is contained in:
parent
afc380a81c
commit
cf7e7a04da
|
@ -194,20 +194,6 @@ function initTokenService() {
|
||||||
return sRemaining < (60 * minutes);
|
return sRemaining < (60 * minutes);
|
||||||
};
|
};
|
||||||
|
|
||||||
TokenService.prototype.isTwoFactorScheme = function () {
|
|
||||||
return this.getScheme() !== 'Application';
|
|
||||||
};
|
|
||||||
|
|
||||||
TokenService.prototype.getScheme = function () {
|
|
||||||
var decoded = this.decodeToken();
|
|
||||||
|
|
||||||
if (typeof decoded.amr === 'undefined' || !decoded.amr.length) {
|
|
||||||
throw 'No scheme found';
|
|
||||||
}
|
|
||||||
|
|
||||||
return decoded.amr[0];
|
|
||||||
};
|
|
||||||
|
|
||||||
TokenService.prototype.getUserId = function () {
|
TokenService.prototype.getUserId = function () {
|
||||||
var decoded = this.decodeToken();
|
var decoded = this.decodeToken();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue