Skip to content

Commit 4ec463d

Browse files
authored
Merge pull request #17 from zxan1285/auto-relogin
DXEX-56: Renew token
2 parents 57b1c75 + be5e905 commit 4ec463d

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2.0.2] - 2019-06-13
8+
9+
### Changed
10+
- App will re-login automatically on token expiration
11+
712
## [2.0.1] - 2019-02-06
813

914
### Fixed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "auth0-authentication-api-debugger-extension",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "My extension for ..",
55
"main": "index.js",
66
"scripts": {

server/views/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,12 @@ $(function () {
577577
bindClients();
578578
read();
579579
setSelectedClientSecrets();
580+
}).fail(function(err) {
581+
if (err.status === 401 || err.status === 403) {
582+
sessionStorage.removeItem('token');
583+
sessionStorage.removeItem('apiToken');
584+
window.location.href = '/login';
585+
}
580586
});
581587
582588
if ("{{method}}" === 'POST' || (window.location.hash && window.location.hash.length > 1) || (window.location.search && window.location.search.length > 1 && window.location.search !== '?webtask_no_cache=1')) {

webtask.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"title": "Auth0 Authentication API Debugger",
33
"name": "auth0-authentication-api-debugger",
4-
"version": "2.0.1",
4+
"version": "2.0.2",
55
"author": "auth0",
66
"useHashName": false,
77
"description": "This extension allows you to test and debug the various Authentication API endpoints",

0 commit comments

Comments
 (0)