authenticate_with_oauth2
Enable user authentication via OAuth2 providers such as Google, Facebook, or GitHub by processing authorization codes, PKCE verifiers, and redirect URLs for secure login integration.
Instructions
Authenticate a user with OAuth2
Input Schema
Name | Required | Description | Default |
---|---|---|---|
code | Yes | The authorization code returned from the OAuth2 provider | |
codeVerifier | Yes | PKCE code verifier | |
collection | No | Collection name (default: users) | users |
provider | Yes | OAuth2 provider name (e.g., google, facebook, github) | |
redirectUrl | Yes | The redirect URL used in the OAuth2 flow |