Epic Games OAuth with PKCE.
Epic Games supports PKCE (S256) by default. Basic profile details are available via the user info endpoint.
# .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/epicMinimal 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'],
});