
The B2BIdentityProvider function renders UI to enable the logged-in member to perform an OAuth Authorization flow with a pre-registered Connected App. The UI component will automatically parse out OAuth related fields from the query params, such as client_id, redirect_uri, scope, and state. The member will be prompted if explicit consent is required for the flow to continue. Otherwise, the member will be redirected immediately.
The member must be logged in before this component is rendered.
B2BIdentityProvider must be wrapped inside a StytchB2BProvider. Take a look at our installation guide for more information on how to configure the StytchB2BProvider for your framework.