* Updated UI to show more information about the token. * Updated the js API to note the client token when creating it. * Added prototype override to do add day calculations on dates. * Updated auth check against token to inspect the expiration date of the token if it possesses one.
7 lines
No EOL
154 B
JavaScript
7 lines
No EOL
154 B
JavaScript
'use strict';
|
|
|
|
Date.prototype.addDays = function(days) {
|
|
let dat = new Date(this.valueOf());
|
|
dat.setDate(dat.getDate() + days);
|
|
return dat;
|
|
}; |