Skip to content

Commit ca7f4b9

Browse files
author
Gerald McNicholl
committed
Adding EVEOnline provider
1 parent aee9e61 commit ca7f4b9

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

src/providers/eveonline.js

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
export default (options) => {
2-
return {
3-
id: "eveonline",
4-
name: "EVEOnline",
5-
type: "oauth",
6-
version: "2.0",
7-
params: { grant_type: "authorization_code" },
8-
accessTokenUrl: "https://login.eveonline.com/oauth/token",
9-
authorizationUrl:
10-
"https://login.eveonline.com/oauth/authorize?response_type=code",
11-
profileUrl: "https://login.eveonline.com/oauth/verify",
12-
profile: (profile) => {
13-
return {
14-
id: profile.CharacterID,
15-
name: profile.CharacterName,
16-
image: `https://image.eveonline.com/Character/${profile.CharacterID}_128.jpg`,
17-
email: null
18-
};
19-
},
20-
...options
21-
}
2+
return {
3+
id: "eveonline",
4+
name: "EVEOnline",
5+
type: "oauth",
6+
version: "2.0",
7+
params: { grant_type: "authorization_code" },
8+
accessTokenUrl: "https://login.eveonline.com/oauth/token",
9+
authorizationUrl: "https://login.eveonline.com/oauth/authorize?response_type=code",
10+
profileUrl: "https://login.eveonline.com/oauth/verify",
11+
profile: (profile) => {
12+
return {
13+
id: profile.CharacterID,
14+
name: profile.CharacterName,
15+
image: `https://image.eveonline.com/Character/${profile.CharacterID}_128.jpg`,
16+
email: null
17+
};
18+
},
19+
...options
20+
}
2221
}

0 commit comments

Comments
 (0)