| Safe Haskell | None | 
|---|---|
| Language | Haskell98 | 
Snap.Snaplet.Auth.Backends.JsonFile
- initJsonFileAuthManager :: AuthSettings -> SnapletLens b SessionManager -> FilePath -> SnapletInit b (AuthManager b)
- mkJsonAuthMgr :: FilePath -> IO JsonFileAuthManager
Documentation
initJsonFileAuthManager Source #
Arguments
| :: AuthSettings | Authentication settings for your app | 
| -> SnapletLens b SessionManager | Lens into a  | 
| -> FilePath | Where to store user data as JSON | 
| -> SnapletInit b (AuthManager b) | 
Initialize a JSON file backed AuthManager
mkJsonAuthMgr :: FilePath -> IO JsonFileAuthManager Source #
Load/create a datafile into memory cache and return the manager.
This data type can be used by itself for batch/non-handler processing.