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 |
Input Schema (JSON Schema)
{
"properties": {
"code": {
"description": "The authorization code returned from the OAuth2 provider",
"type": "string"
},
"codeVerifier": {
"description": "PKCE code verifier",
"type": "string"
},
"collection": {
"default": "users",
"description": "Collection name (default: users)",
"type": "string"
},
"provider": {
"description": "OAuth2 provider name (e.g., google, facebook, github)",
"type": "string"
},
"redirectUrl": {
"description": "The redirect URL used in the OAuth2 flow",
"type": "string"
}
},
"required": [
"provider",
"code",
"codeVerifier",
"redirectUrl"
],
"type": "object"
}