Initializerhummingbird-auth 2.0.2HummingbirdAuth
init
Initialize SessionContext
init()
Initialize SessionContext
init()
import HummingbirdAuth
struct SessionContext<Session> where Session : Decodable, Session : Encodable, Session : Sendable
Session context
var session: Session? { get }
Get a copy of the session data
func clearSession()
Clear session data
func setSession(_ session: Session, expiresIn: Duration? = nil)
Set session data
func withLockedSession<Value>(_ mutate: (inout SessionData<Session>?) -> Value) -> Value
Access the session and allowing it to be mutated