WardrikHTTP.Bearer (wardrik_http v0.1.0-rc.1)

Copy Markdown

Authenticates a request by its API token, sent as Authorization: Bearer wrk_....

Checks the token with the server's Wardrik.Server.authenticate/2. Returns an :unauthorized error if the header is missing.