<OAuthButton />
Renders a customized OAuth button for various providers to initiate sign-in or sign-up processes.
Note that if the specific OAuth provider is disabled in the dashboard, this component will still render. However, attempting to use it will result in an error being thrown.
For more information, please refer to the custom pages guide.
Props
provider
:string
- The name of the OAuth provider (e.g., ‘google’, ‘github’, ‘facebook’).type
:'sign-in' | 'sign-up'
- Determines whether the button text is for signing in or signing up. (both are the same in terms of functionality)
Example
The OAuthButton
component automatically styles itself based on the provided OAuth provider and handles the sign-in or sign-up process when clicked.