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
I have an idea for a new feature for jQuery Terminal
When you have a nested interpreter that has login there is no way to autologic and no way to get the token and username for the interpreter that waits for authentication.
There should be a way to skip the login when there are token and username is localstorage. But there should be a way to validate if token is valid first.
Possible solution:
term.push(function(command){},{autologin(user,token){// verify that the token is valid// and return a boolean or promise that resolves to boolean},login(user,password){// ...}});
The text was updated successfully, but these errors were encountered:
onBeforeLogin execute after the user type user and password or before autologin.
But there was one problem that onBeforeLogin was supporting async call, so you were not able to return a promise and call the server to verify that the token was valid.
I have an idea for a new feature for jQuery Terminal
When you have a nested interpreter that has login there is no way to autologic and no way to get the token and username for the interpreter that waits for authentication.
There should be a way to skip the login when there are token and username is localstorage. But there should be a way to validate if token is valid first.
Possible solution:
The text was updated successfully, but these errors were encountered: