AuthToken: client token rotation fix (#65709)

* AuthToken: respond with 401 if token is not found

* Set retry to one so we don't retry a failed token rotation
This commit is contained in:
Karl Persson
2023-03-31 16:44:08 +02:00
committed by GitHub
parent 355f47628f
commit 46cfb73e21
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -450,7 +450,7 @@ export class BackendSrv implements BackendService {
}
rotateToken() {
return this.request({ url: '/api/user/auth-tokens/rotate', method: 'POST' });
return this.request({ url: '/api/user/auth-tokens/rotate', method: 'POST', retry: 1 });
}
loginPing() {