We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7834ccf commit 2a6a028Copy full SHA for 2a6a028
changelog/26396.txt
@@ -0,0 +1,3 @@
1
+```release-note:improvement
2
+ui: show banner instead of permission denied error when batch token is expired
3
+```
ui/app/services/auth.js
@@ -285,6 +285,11 @@ export default Service.extend({
285
286
if (resp.renewable) {
287
assign(data, this.calculateExpiration(resp));
288
+ } else if (resp.type === 'batch') {
289
+ // if it's a batch token, it's not renewable but has an expire time
290
+ // so manually set tokenExpirationEpoch and allow expiration
291
+ data.tokenExpirationEpoch = new Date(resp.expire_time).getTime();
292
+ this.set('allowExpiration', true);
293
}
294
295
if (!data.displayName) {
0 commit comments