Skip to main content
Version: v0.16

Authentication

Authentication Module

The Authentication module provides user identity management for your application.

Features

  • Local Authentication - Email/password with optional verification
  • OAuth Providers - 13+ social login integrations
  • Two-Factor Auth - Phone OTP and authenticator app support
  • Magic Links - Passwordless login via email
  • Token Management - JWT access and refresh tokens
  • Account Linking - Connect multiple providers to one account

Supported OAuth Providers

Dependencies

ModuleRequiredPurpose
EmailOptionalEmail verification, password reset
SMSOptionalPhone-based 2FA

Minimum Configuration

This module works out of the box with local authentication. No initial configuration required.

Environment Variables

NameRequiredDescriptionExample
CONDUIT_SERVERYesConduit Core address0.0.0.0:55152
SERVICE_URLNoService address (for load balancers)0.0.0.0:56154
GRPC_PORTNogRPC server port56154
GRPC_KEYNogRPC signed request protectionsomeSecret

Quick Start

Create a User

curl -X POST 'http://localhost:3000/authentication/local/new' \
-H 'Content-Type: application/json' \
-d '{
"email": "user@example.com",
"password": "password123"
}'

Login

curl -X POST 'http://localhost:3000/authentication/local' \
-H 'Content-Type: application/json' \
-d '{
"email": "user@example.com",
"password": "password123"
}'

Response

{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "abc123...",
"expiresIn": 86400
}

Authentication Strategies

StrategyDescriptionRequirements
LocalEmail/password authenticationNone
Magic LinkPasswordless email loginEmail module
Two-FactorAdditional security layerSMS or Authenticator