25 lines
553 B
JavaScript
25 lines
553 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = Reddit;
|
|
function Reddit(options) {
|
|
return {
|
|
id: "reddit",
|
|
name: "Reddit",
|
|
type: "oauth",
|
|
authorization: "https://www.reddit.com/api/v1/authorize?scope=identity",
|
|
token: " https://www.reddit.com/api/v1/access_token",
|
|
userinfo: "https://oauth.reddit.com/api/v1/me",
|
|
profile(profile) {
|
|
return {
|
|
id: profile.id,
|
|
name: profile.name,
|
|
email: null,
|
|
image: null
|
|
};
|
|
},
|
|
options
|
|
};
|
|
} |