callback
Configures the OAuth callback route and success handler.
The redirect URI sent to the OAuth provider is derived automatically from path. The initial OAuth redirect is triggered by visiting loginPath, not this route.
Parameters
path
route path that receives the provider callback with authorization code and state.
onSuccess
handler invoked after OAuth token exchange succeeds. Receives the token response as its parameter.