Closed kyle-rader closed 1 year ago
If Action Cable connections have access to request env, you should be able to do:
verified_user = env["rodauth"].rails_account
For secondary configurations, e.g. :admin
, you'd call env["rodauth.admin"]
.
It might be worth adding similar helpers for controllers to Action Cable connections in rodauth-rails 🤔
I'm going to close this, as it's not a bug report. Please ask usage questions in discussions channel 🙂
I'm starting to use ActionCable and have a connection class that looks like the following. What's the best way to authenticate this connection using the existing session?