graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.CredentialCache

Description

Interface for a service for maintaining short-lived credentials, such as access tokens or JWTs.

Documentation

newtype CredentialCache cred Source #

Constructors

CredentialCache 

Fields

  • getCredential :: STM (cred, STM (STM ()))

    Get the stored credential. Also returns an STM action for requesting a refresh of the credential, which, in turn, returns an STM action for waiting on the arrival of the fresh credential.

Instances

Instances details
Functor CredentialCache Source # 
Instance details

Defined in Hasura.CredentialCache

Methods

fmap :: (a -> b) -> CredentialCache a -> CredentialCache b #

(<$) :: a -> CredentialCache b -> CredentialCache a #