Closed mplatts closed 1 year ago
It shouldn't run twice since if one succeeds and a user gets assigned, the other will just continue without attempting any operation: https://github.com/pow-auth/pow_assent/blob/v0.4.11/lib/pow_assent/plug.ex#L122-L190
The pow_assent_persistent_session
plug function will only be called once when the pipeline runs. Am I missing something?
Looking in
PowAssent.Plug
:When I sign in with Facebook, both
maybe_authenticate()
andmaybe_upsert_user_identity()
callcreate_session()
, so it runs twice.This means any callbacks I've added also get run twice every time someone logs in with Facebook: