Auto-commit 2026-04-29 16:31
This commit is contained in:
34
node_modules/next-auth/providers/wikimedia.js
generated
vendored
Normal file
34
node_modules/next-auth/providers/wikimedia.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = Wikimedia;
|
||||
function Wikimedia(options) {
|
||||
return {
|
||||
id: "wikimedia",
|
||||
name: "Wikimedia",
|
||||
type: "oauth",
|
||||
token: "https://meta.wikimedia.org/w/rest.php/oauth2/access_token",
|
||||
userinfo: "https://meta.wikimedia.org/w/rest.php/oauth2/resource/profile",
|
||||
authorization: {
|
||||
url: "https://meta.wikimedia.org/w/rest.php/oauth2/authorize",
|
||||
params: {
|
||||
scope: ""
|
||||
}
|
||||
},
|
||||
profile(profile) {
|
||||
return {
|
||||
id: profile.sub,
|
||||
name: profile.username,
|
||||
email: profile.email
|
||||
};
|
||||
},
|
||||
style: {
|
||||
logo: "/wikimedia.svg",
|
||||
bg: "#000",
|
||||
text: "#fff"
|
||||
},
|
||||
options
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user