mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user