updateSession
context(sessionCtx: SessionContext<S>, _: PrincipalContext<*>)
fun <S : Any> ApplicationCall.updateSession(transform: (S) -> S): S(source)
fun <S : Any> ApplicationCall.updateSession(transform: (S) -> S): S(source)
Replaces the authenticated session with the value returned by transform.
Return
the updated session value.