Expand description
Social login providers (GitHub, Google).
Endpoint URLs come from crate::providers::endpoints — the single
source of truth shared with the mail provider presets.
Structs§
- Social
Provider Config - Configuration for a social login provider.
- Social
User Info - User information returned by a social login provider.
Enums§
- Social
Error - Errors for social login operations.
- Social
Provider - Supported social login providers.
Functions§
- build_
authorize_ url - Build the authorization redirect URL with CSRF state.
- exchange_
code - Exchange an authorization code for an access token.
- fetch_
user_ info - Fetch user profile info from the provider.
- sanitize_
username - Sanitize a username from a provider: alphanumeric + underscore, 3-30 chars.
Falls back to
user_{random}if too short after sanitization.