Bearer authentication middleware.
Adds a {"authorization", "Bearer <token>"} header.
{"authorization", "Bearer <token>"}
defmodule MyClient do def new(token) do Tesla.client([ {Tesla.Middleware.BearerAuth, token: token} ]) end end
:token
""