validate

Sets a validation function for the session value.

Return the principal of type P when the session is accepted, or null when the session is invalid.

Report a problem

Parameters

body

validation function called with the current routing context and session value read by the Sessions plugin.