25 lines
672 B
JavaScript
25 lines
672 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = EVEOnline;
|
|
function EVEOnline(options) {
|
|
return {
|
|
id: "eveonline",
|
|
name: "EVE Online",
|
|
type: "oauth",
|
|
authorization: "https://login.eveonline.com/v2/oauth/authorize?scope=publicData",
|
|
token: "https://login.eveonline.com/v2/oauth/token",
|
|
userinfo: "https://login.eveonline.com/oauth/verify",
|
|
profile(profile) {
|
|
return {
|
|
id: String(profile.CharacterID),
|
|
name: profile.CharacterName,
|
|
email: null,
|
|
image: `https://image.eveonline.com/Character/${profile.CharacterID}_128.jpg`
|
|
};
|
|
},
|
|
options
|
|
};
|
|
} |