LiveSessionMountAspect
class LiveSessionMountAspect[R, -In, Claims, Ctx]Produces session context immediately before disconnected and connected LiveView mount.
The disconnected callback runs before the initial HTTP LiveView is built and mounted. Its
Claims are JSON-encoded into the signed root LiveView session token, then decoded for the
connected callback before a fresh connected LiveView is built and mounted. The connected
callback also runs for same-session live navigation. The two Ctx values are computed
independently; only Claims cross the HTTP-to-socket boundary.
Claims are authenticated by the session signature but are not encrypted. They are visible to the client and must not contain passwords, session cookie values, private access tokens, or other secrets. Prefer a minimal public identifier, and revalidate revocation and authorization in connected mount. Claim encoding and transport are framework internals, not a stable wire format.
Defined by scalive.LiveSessionMountAspect. View source (scalive/api/src/scalive/LiveSessionMountAspect.scala:31-68)
Methods2
++
def ++[R1, Claims2, Ctx2, Result](that: LiveSessionMountAspect[R1, Ctx, Claims2, Ctx2])(using x$2: zio.json.JsonCodec[(Claims, Claims2)], x$3: ContextAppend.Aux[Ctx, Ctx2, Result]): LiveSessionMountAspect[&[R, R1], In, (Claims, Claims2), Result]Composes two session aspects from left to right in both mount phases.
Defined by scalive.LiveSessionMountAspect.++. View source (scalive/api/src/scalive/LiveSessionMountAspect.scala:49-67)
map
def map[Ctx2](f: Ctx => Ctx2): LiveSessionMountAspect[R, In, Claims, Ctx2]Transforms this aspect's context in both mount phases without changing its claims or input.
Defined by scalive.LiveSessionMountAspect.map. View source (scalive/api/src/scalive/LiveSessionMountAspect.scala:41-46)