Okta/OIDC login? and treeview state handling?

Hotwire looks really cool, but a couple of noob questions:

  1. how would you handle an OIDC/Okta login? Is this purely going to be server side or is it client side w/ passing JWT tokens to the server?
  2. for something like a treeview UI or state w/ e.g. an expanded/collapsed state, how would you preserve that state through a back button? If elements are shared across screens, you use the “permanent” attribute, but it doesn’t seem to handle this case.