You're seeing just the function bearer_auth, go back to Oasis.Plug.BearerAuth module for more information.
Link to this function

bearer_auth(conn, options \\ [])

View Source

Higher level usage of Baerer HTTP authentication.

See the module docs for examples.


  • :security, required, a module be with Oasis.Token behaviour.
  • :key_to_assigns, optional, after the verification of the token, the original data will be stored into the conn.assigns once this option defined, for example, if set it as :user_id, we can access the verified data via conn.assigns.user_id in the next plug pipeline.