Auto-commit 2026-04-29 16:31
This commit is contained in:
28
node_modules/next-auth/providers/battlenet.js
generated
vendored
Normal file
28
node_modules/next-auth/providers/battlenet.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = BattleNet;
|
||||
function BattleNet(options) {
|
||||
return {
|
||||
id: "battlenet",
|
||||
name: "Battle.net",
|
||||
type: "oauth",
|
||||
wellKnown: `${options.issuer}/.well-known/openid-configuration`,
|
||||
profile(profile) {
|
||||
return {
|
||||
id: profile.sub,
|
||||
name: profile.battle_tag,
|
||||
email: null,
|
||||
image: null
|
||||
};
|
||||
},
|
||||
style: {
|
||||
logo: "/battlenet.svg",
|
||||
bg: "#148eff",
|
||||
text: "#fff"
|
||||
},
|
||||
options
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user