HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduleservant-auth-client-0.4.10.0Haskell2010

Servant.Auth.Client.Internal

Contents
  1. Authentication combinators
Synopsis
newtypenewtype Token

A simple bearer token.

Constructors

Instances6Eq, Read, Show, IsString, Generic, Rep

Authentication combinators

datadata Bearer

A Bearer token in the Authorization header:

Authorization: Bearer token

This can be any token recognized by the server, for example, a JSON Web Token (JWT).

Note that, since the exact way the token is validated is not specified, this combinator can only be used in the client. The server would not know how to validate it, while the client does not care. If you want to implement Bearer authentication in your server, you have to choose a specific combinator, such as JWT.

Orphan instances

1 instance