refresh

fun refresh(path: String = "/oidc/", onRefresh: suspend RoutingContext.() -> Unit = {})(source)

Configures the plugin-managed session refresh route.

When omitted, defaults to POST /oidc/{providerName}/refresh with an empty onRefresh hook.

The onRefresh hook runs after the session is updated with refreshed token material and before the 200 OK response.

Report a problem

Parameters

path

refresh route path.

onRefresh

hook invoked after the session is refreshed.