Epic Games OAuth

Epic Games OAuth with PKCE.

Overview

Epic Games supports PKCE (S256) by default. Basic profile details are available via the user info endpoint.

Environment

# .env.local
AUTH_SECRET=your-secret-key-min-32-chars-long
EPIC_CLIENT_ID=your-epic-client-id
EPIC_CLIENT_SECRET=your-epic-client-secret
EPIC_REDIRECT_URI=http://localhost:3000/api/auth/callback/epic

Configuration

Basic Epic Games OAuth Setup

Minimal configuration

import { epic } from '@warpy-auth-sdk/core';

const provider = epic({
  clientId: process.env.EPIC_CLIENT_ID!,
  clientSecret: process.env.EPIC_CLIENT_SECRET!,
  redirectUri: process.env.EPIC_REDIRECT_URI!,
  scope: ['basic_profile'],
});

Profile Pictures

Epic's basic profile API does not include an avatar; the SDK leaves picture undefined.
Epic Games OAuth | @warpy-auth-sdk/core