How do I use a custom assign in the AshAuthentication success callback to work with Ash.Scope?
I’m using AshAuthentication and I have a
I tried changing the assign line to
What’s the recommended way to do this in AshAuth? Should I assign it once in the
success/4 callback in my AuthController that looks like this that is attempting to set the current_user key in the Scope object as part of the authentication confirmation flow:I tried changing the assign line to
:current_scope, but it had no effect — conn.assigns still only contains :current_user.What’s the recommended way to do this in AshAuth? Should I assign it once in the
success/4 callback, or add a plug that derives it from :current_user on every request?