Auth: Add early return if `auth_token` is in the URL for JWT auth (#100539)

* Add early return

* Update public/app/app.ts

Co-authored-by: Victor Cinaglia <victor@grafana.com>

---------

Co-authored-by: Victor Cinaglia <victor@grafana.com>
pull/100581/head
Misi 3 months ago committed by GitHub
parent 8a8e47fcea
commit 5a6d2f2e49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      public/app/app.ts

@ -409,6 +409,7 @@ function handleRedirectTo(): void {
if (queryParams.has('auth_token')) {
// URL Login should not be redirected
window.sessionStorage.removeItem(RedirectToUrlKey);
return;
}
if (queryParams.has(redirectToParamKey) && window.location.pathname !== '/') {

Loading…
Cancel
Save