View Source CharonAbsinthe.HydrateContextPlug (CharonAbsinthe v0.2.0)

Plug to bridge the gap between Plug's conn and Abinthe's context.

Processes the auth token as an access token, and stores the conn in the context as :charon_conn so that it may be used in Absinthe resolvers for manipulation sessions with Charon.SessionPlugs.

Note that no guarantees are offered about the consistency of the assigns/private fields etc of this conn struct apart from the Charon-related contents.