Mechanism for generating new Session, returning a Future
of the Session[A]
Mechanism for generating new Session, returning a Future
of the Session[A]
val data = 1 val sessionFuture = for { s <- Session(data) _ <- SessionStore.InMemoryStore.update(s) } yield s
value you want to store
the secret store to fetch current secret
Session
Primary method of recreating Session[A]
from a given SignedId
and data type A
Primary method of recreating Session[A]
from a given SignedId
and data type A
case class Foo(i: Int) val id = Await.result(SignedId.next) val data = Foo(42) val s = Session(id, data) val s2 = Session(id, data) s == s2 // true s === s2
the SignedId
an arbitrary data value
a Session