Authentication API

Authenticate with FluxRPC using various providers. This unified endpoint supports multiple authentication methods including Google, GitHub, and Solana wallet.

Endpoint

POST /auth/login

Base URL: https://api.fluxbeam.xyz

Authentication Providers

Request Body

{
  "provider": "google" | "github" | "solana",
  "token": "string (for Google/GitHub)",
  "publicKey": "string (for Solana)",
  "signature": "string (for Solana)",
  "message": "string (for Solana)"
}

Response

{
  "token": "JWT token for subsequent API calls",
  "user": {
    "id": "string",
    "email": "string",
    "name": "string"
  }
}

Rate Limiting

Authentication endpoints are rate-limited to 10 requests per minute per IP address.

← Back to documentation