%html.login-pf{:class => ::Settings.server.custom_login_logo ? '' : 'rcue-login', :lang => I18n.locale.to_s.sub('-', '_')}
  %head
    = favicon_link_tag
    = stylesheet_link_tag 'application'
    = javascript_include_tag 'application'

  %body
    - if api_auth_token && validation_url
      :javascript
        miqFlashClearSaved();
        sessionStorage.miq_token = '#{j_str api_auth_token}';
        window.location = '#{j_str validation_url}';
    - else
      :javascript
        miqFlashClearSaved();
        window.location = '/dashboard/logout';

%html.login-pf{:class => ::Settings.server.custom_login_logo ? '' : 'rcue-login', :lang => I18n.locale.to_s.sub('-', '_')}
  %head
    = favicon_link_tag
    = stylesheet_link_tag 'application'
    = javascript_include_tag 'application'

  %body
    - if api_auth_token && validation_url
      :javascript
        miqFlashClearSaved();
        localStorage.miq_token = '#{j_str api_auth_token}';
        window.location = '#{j_str validation_url}';
    - else
      :javascript
        miqFlashClearSaved();
        window.location = '/dashboard/logout';

Update oidc_login from sessionStorage to localStorage
Update oidc_login from sessionStorage to localStorage
