Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data IsMatch
- data IsSecure
- data IsPasswordCorrect
- data SameSite
- data JWTSettings = JWTSettings {
- key :: JWK
- audienceMatches :: StringOrURI -> IsMatch
- defaultJWTSettings :: JWK -> JWTSettings
- data CookieSettings = CookieSettings {}
- defaultCookieSettings :: CookieSettings
- jwtSettingsToJwtValidationSettings :: JWTSettings -> JWTValidationSettings
Documentation
data IsPasswordCorrect Source
data JWTSettings Source
JWTSettings
are used to generate cookies, and to verify JWTs.
JWTSettings | |
|
defaultJWTSettings :: JWK -> JWTSettings Source
A JWTSettings
where the audience always matches.
data CookieSettings Source
The policies to use when generating cookies.
If *both* cookieMaxAge
and cookieExpires
are Nothing
, browsers will
treat the cookie as a *session cookie*. These will be deleted when the
browser is closed.
Note that having the setting Secure
may cause testing failures if you are
not testing over HTTPS.
CookieSettings | |
|