authenticateWithRedirect

Initiates authentication with a redirect-based flow (OAuth or Enterprise SSO).

This method handles the redirect authentication process by coordinating with the appropriate SSO service based on the provided parameters.

Return

A ClerkResult containing either an OAuthResult with the authentication details or a ClerkErrorResponse if the operation failed.

Parameters

params

The authentication parameters containing strategy, redirect URL, and optional user data.