← Blog

Working with Hotwire Native # 3

Conditional Hotwire Tabs

I wrote a custom tab bar controller that does a quick session check to determine which tabs should be shown. So far, this seems to be working well enough that I may not need OAuth.

Authentication and authorization are still enforced by Rails. The native tab controller uses the presence of the Rails session cookie as a quick UI hint for which tabs to display, but the cookie check is not treated as proof that the user is authenticated. Rails remains the authority for every request.

Still testing it out in daily use, but so far so good!