Skip to content
Migrating from NextAuth.js v4? Read our migration guide.

providers/epicgames

Built-in Epic Games integration.

EpicGamesProfile

The shape of the user object returned by Epic Games when requesting user info. Properties must be adapted based on the exact data the client decides to receive from the Epic Games API.

Properties

preferred_username?

optional preferred_username: string;

sub

sub: string;

default()

function default<P>(options): OAuthConfig<P>

Configure the Epic Games OAuth provider.

Type Parameters

Type Parameter
P extends EpicGamesProfile

Parameters

ParameterTypeDescription
optionsOAuthUserConfig<P>User configuration for the Epic Games provider

Returns

OAuthConfig<P>

  • An object conforming to the Auth.js OAuthConfig interface

Example

import EpicGamesProvider from "next-auth/providers/epicgames"
// ...
providers: [
  EpicGamesProvider({
    clientId: process.env.EPIC_CLIENT_ID,
    clientSecret: process.env.EPIC_CLIENT_SECRET,
  })
]
Auth.js © Balázs Orbán and Team - 2025