howdy/authentication/session
Types
pub type TestSession {
TestSession(
insert: fn(String, String, Int, List(#(String, String))) ->
Bool,
lookup: fn(String) ->
Result(
#(String, String, Int, List(#(String, String))),
Nil,
),
delete: fn(String) -> Bool,
)
}
Constructors
-
TestSession( insert: fn(String, String, Int, List(#(String, String))) -> Bool, lookup: fn(String) -> Result(#(String, String, Int, List(#(String, String))), Nil), delete: fn(String) -> Bool, )
Functions
pub fn insert(id: String, name: String, timeout: Int, claims: List(
#(String, String),
)) -> Bool