You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--added function to check token expiration
--added function to extend token
--fix in token manager view(hide current auth token)
--logged in token - life span based on configs
* @param {string} options.token - token to rvalidate
90
+
* @param {function} options.callback - function called when reading was completed or errored, providing error object as first param, true or false if expired as second, seconds till expiration as third.(-1 if never expires, 0 - if expired)
* @param {string} options.extendBy - extend token by given time(in ms)(optional) You have to provide extedBy or extendTill. extendBy==0 makes it never die
118
+
* @param {string} options.extendTill - extend till given timestamp. (optional) You have to provide extedBy or extendTill
119
+
* @param {function} options.callback - function called when reading was completed or errored, providing error object as first param and true as second if extending successful
120
+
*/
121
+
authorizer.extend_token=function(options){
122
+
if(!options.token||options.token==""){
123
+
if(typeofoptions.callback==="function")
124
+
options.callback(Error("Token not provided"),null);
0 commit comments