Logotipo Hedhog

Get Hedhog updates in your inbox

New releases, fresh recipes, and breaking changes — no spam.

Back to Core modulesWired in CoreModule

Core Submodule

oauth

Handles OAuth login/register/connect flows and provider unlink.

Source path: libraries/core/src/oauth

Module file: oauth.module.ts

Introduction

This page documents the oauth submodule as part of the Core package. Use it as a quick technical reference for implementation scope, exposed APIs and MCP integration points.

HTTP Endpoints

9 endpoints

Redirect to the OAuth provider to initiate the login flow.

Params
provider (string)

Redirect to the OAuth provider to initiate the registration flow.

Params
provider (string)

Redirect to the OAuth provider to connect the account to an existing user.

Params
provider (string)

Return the OAuth authorization URL for use in mobile apps.

Params
provider (string)
Query
redirectUri (string)

Handle the OAuth callback for the login flow and issue tokens.

Params
provider (string)
Query
code, state?, redirectUri?

Handle the OAuth callback for the registration flow and create the user.

Params
provider (string)
Query
code

Handle the OAuth callback to link the provider to the current user account.

Params
provider (string)
Query
code

GitHub-specific OAuth callback handler.

Query
code, state?

Disconnect an OAuth provider from the current user account.

Params
provider (string)

Body

FieldTypeRequiredNotes
emailstringyesEmail linked to the provider account

MCP Tools

No MCP tools mapped for this submodule.