Auto-commit 2026-04-29 16:31
This commit is contained in:
25
node_modules/next-auth/providers/wordpress.js
generated
vendored
Normal file
25
node_modules/next-auth/providers/wordpress.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = WordPress;
|
||||
function WordPress(options) {
|
||||
return {
|
||||
id: "wordpress",
|
||||
name: "WordPress.com",
|
||||
type: "oauth",
|
||||
authorization: "https://public-api.wordpress.com/oauth2/authorize?scope=auth",
|
||||
token: "https://public-api.wordpress.com/oauth2/token",
|
||||
userinfo: "https://public-api.wordpress.com/rest/v1/me",
|
||||
profile(profile) {
|
||||
return {
|
||||
id: profile.ID,
|
||||
name: profile.display_name,
|
||||
email: profile.email,
|
||||
image: profile.avatar_URL
|
||||
};
|
||||
},
|
||||
options
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user