Initializerhummingbird-auth 2.0.2HummingbirdAuth
init(storage:sessionCookie:defaultSessionExpiration:)
Initialize SessionMiddleware
init(storage: any PersistDriver, sessionCookie: String = "SESSION_ID", defaultSessionExpiration: Duration = .seconds(60 * 60 * 12))
Parameters
- storage
Persist driver to use for storage
- sessionCookie
Session cookie name
- defaultSessionExpiration
Default expiration for session data