Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

Commit

Permalink
Update eveonline examples for v4 (#26)
Browse files Browse the repository at this point in the history
* Update eveonline examples for v4

* remove jwt callback, remove if in session callback, update file path to new TS EVEOnlineProvider
  • Loading branch information
mckernanin authored Sep 15, 2021
1 parent 8f41591 commit 176087d
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions docs/providers/eveonline.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ https://developers.eveonline.com/

The **EVE Online Provider** comes with a set of default options:

- [EVE Online Provider options](https://github.com/nextauthjs/next-auth/blob/main/src/providers/eveonline.js)
- [EVE Online Provider options](https://github.com/nextauthjs/next-auth/blob/main/src/providers/eveonline.ts)

You can override any of the options to suit your own use case.

Expand Down Expand Up @@ -44,19 +44,8 @@ options: {
secret: process.env.JWT_SECRET,
},
callbacks: {
jwt: async (token, user, account, profile, isNewUser) => {
if (profile) {
token = {
...token,
id: profile.CharacterID,
}
}
return token;
},
session: async (session, token) => {
if (token) {
session.user.id = token.id;
}
session: async ({ session, token }) => {
session.user.id = token.id;
return session;
}
}
Expand Down

1 comment on commit 176087d

@vercel
Copy link

@vercel vercel bot commented on 176087d Sep 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.