graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.Server.Auth.JWT.Internal

Synopsis

Documentation

parseHmacKey :: Text -> Int64 -> Either Text JWK Source #

Helper functions to decode Text to JWK

parseRsaKey :: Text -> Either Text JWK Source #

parseEdDSAKey :: Text -> Either Text JWK Source #

fromRawPem :: ByteString -> Either Text JWK Source #

Helper functions to decode PEM bytestring to RSA public key

pubKeyToJwk :: PubKey -> Either Text JWK Source #

getAtleastOne :: Text -> [a] -> Either Text a Source #