Actions31
- User API Actions
- Organization API Actions
- Allowlist API Actions
- Domain API Actions
- Session API Actions
- Invitation API Actions
User API → Get User OAuth Access Token
AI-generatedSummary
Retrieve an OAuth access token for a specified user from a defined OAuth provider.
Inputs
- userId (required) — The ID of the user to fetch.
- provider — The OAuth provider for the user, defaults to 'google'.
Output shape
a JSON object containing the OAuth access token for the specified user.
Ensure the user ID is valid and the OAuth provider is supported. The response includes the access token and may contain additional details based on the provider.