providers/epicgames
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
Parameter | Type | Description |
---|---|---|
options | OAuthUserConfig <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,
})
]