Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- newtype Seconds = Seconds {}
- data JWTInfo = JWTInfo {}
- data JWTOps = JWTOps {
- jwtOpsSecret :: !Text
- jwtOpsExpTime :: !Seconds
- mkJWTInfo :: JWTOps -> JWTInfo
- mkClaims :: NominalDiffTime -> Seconds -> UserID -> JWTClaimsSet
Documentation
A datatype enforcing units be in Seconds.
Application JWT config state.
Initial JWT config state @ application startup, converted to JWTInfo
.
JWTOps | |
|
mkClaims :: NominalDiffTime -> Seconds -> UserID -> JWTClaimsSet Source #
Populates the desired claims:
- iss
- Issuer of the JWT
- aud
- Audience for the JWT
- sub
- Subject of the JWT; a UserID
- exp
- Expiration time of the JWT