snaplet-auth-acid-0.0.1: Provides an Acid-State backend for the Auth Snaplet

Safe HaskellNone

Snap.Snaplet.Auth.Backends.Acid

Documentation

type UserLogin = TextSource

type RToken = TextSource

deleteIfJust :: (Hashable a, Eq a) => Maybe a -> HashMap a b -> HashMap a bSource

updateUserCache :: MonadState UserStore m => AuthUser -> UserId -> m ()Source

updateLoginCache :: MonadState UserStore m => Text -> UserId -> m ()Source

updateTokenCache :: MonadState UserStore m => Maybe Text -> UserId -> m ()Source