I've been playing with the new Rails 8 authentication features in a new app lately. It's really cool (more on it later). Best part IMHO is that the code is available to you in your app. Here's an example with a feature to resume the session while allowing unauthenticated access.
This is useful when you want pages from your app to be publicly available, yet you'd like your existing users to be logged in to show some contextual information (like in a navbar for instance)
This is how it's used in the controller
• • •
Missing some Tweet in this thread? You can try to
force a refresh