EVEOnline Provider
Resources
Setup
Callback URL
https://example.com/api/auth/callback/eveonlineEnvironment Variables
AUTH_EVEONLINE_ID
AUTH_EVEONLINE_SECRETConfiguration
/auth.ts
import NextAuth from "next-auth"
import EveOnline from "next-auth/providers/eve-online"
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [EveOnline],
})Notes
-
When creating your application, make sure to select
Authentication Onlyas the connection type. -
If using JWT for the session, you can add the
CharacterIDto the JWT and session. For example:
const AuthConfig = {
callbacks: {
jwt({ token, user }) {
if (user) {
token.characterId = user.CharacterID
}
return token
},
session({ session, token }) {
session.user.characterId = token.characterId
return session
},
},
}