unison-cli-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.Auth.CredentialManager

Synopsis

Documentation

saveCredentials :: MonadUnliftIO m => CredentialManager -> CodeserverId -> CodeserverCredentials -> m () Source #

Saves credentials to the active profile.

data CredentialManager Source #

A CredentialManager knows how to load, save, and cache credentials. It's thread-safe and safe for use across multiple UCM clients. Note: Currently the in-memory cache is _not_ updated if a different UCM updates the credentials file, however this shouldn't pose any problems, since auth will still be refreshed if we encounter any auth failures on requests.

isExpired :: MonadIO m => CodeserverCredentials -> m Bool Source #

Checks whether CodeserverCredentials are expired.