View Source Boruta.Oauth.BearerToken (Boruta core v2.3.3)

OAuth bearer token utilities

Provide utilities to manipulate bearer tokens as stated in RFC 6750 - Bearer token usage

Summary

Functions

@spec extract_token(conn :: Plug.Conn.t()) ::
  {:ok, access_token :: String.t()} | {:error, error :: Boruta.Oauth.Error.t()}