OAuth authentication buttons component for Google, GitHub, and Facebook Sign-In.
This component automatically checks if OAuth is available and configured. If OAuth is not available (dependencies not installed or not enabled in settings), the buttons will not be rendered.
Summary
Functions
Renders OAuth provider buttons for authentication.
Functions
Renders OAuth provider buttons for authentication.
This component only renders buttons if:
- OAuth is enabled in settings (oauth_enabled = true)
- Ueberauth library is loaded
- At least one provider is configured
Examples
<.oauth_buttons />
<.oauth_buttons show_divider={false} />
<.oauth_buttons class="mt-6" />Attributes
class(:string) - Defaults to"".show_divider(:boolean) - Defaults totrue.return_to(:string) - Local post-login destination to carry through the OAuth round-trip. The callback stashes it as :oauth_return_to; without it a user sent to sign in from a protected page lands on the default instead. Defaults tonil.