Came accross a problem where other :guardian_ keys where being processed by the Guardian.Plug.Keys module. Other meaning: other than _claims, _token and _resource.
These other keys may, for example, have been put there by another Plug in the pipeline. In particular, this causes problems when working together with guardian_db and revoking sessions.
Came accross a problem where other
:guardian_
keys where being processed by theGuardian.Plug.Keys
module. Other meaning: other than_claims
,_token
and_resource
.These other keys may, for example, have been put there by another Plug in the pipeline. In particular, this causes problems when working together with
guardian_db
and revoking sessions.The test demonstrates this by constructing this:
and then calling
Impl.Plug.sign_out
which would subsequently not try to clear the key:guardian_error_handler
from the session with this fix.