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
So the idea is to allow hijacking the response from JSON-RPC and allow any async request and result of the user response will be processed. Not only allow mutating the response.
This is needed to create a seamless experience using JWT refresh token (issue #829).
When the user type a command and it throws an error because the access token expires, you should be able to send a new HTTP request or new JSON-RPC call to refresh the token and save a new access token in localStorage:
Not sure how to simplify the API. Maybe there is a need for a new handler that will replace response and request single event that will get request and response objects and return a new response asynchronously.
I have an idea for a new feature for jQuery Terminal
So the idea is to allow hijacking the response from JSON-RPC and allow any async request and result of the user response will be processed. Not only allow mutating the response.
This is needed to create a seamless experience using JWT refresh token (issue #829).
When the user type a command and it throws an error because the access token expires, you should be able to send a new HTTP request or new JSON-RPC call to refresh the token and save a new access token in localStorage:
Not sure how to simplify the API. Maybe there is a need for a new handler that will replace
response
andrequest
single event that will get request and response objects and return a new response asynchronously.Right now when the token expired there is a visible error on the terminal.
The text was updated successfully, but these errors were encountered: