updateSession

context(sessionCtx: SessionContext<S>, _: PrincipalContext<*>)
fun <S : Any> ApplicationCall.updateSession(transform: (S) -> S): S(source)

Replaces the authenticated session with the value returned by transform.

Report a problem

Return

the updated session value.