Auto-commit 2026-04-29 16:31
This commit is contained in:
41
node_modules/next-auth/providers/twitch.js
generated
vendored
Normal file
41
node_modules/next-auth/providers/twitch.js
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = Twitch;
|
||||
function Twitch(options) {
|
||||
return {
|
||||
wellKnown: "https://id.twitch.tv/oauth2/.well-known/openid-configuration",
|
||||
id: "twitch",
|
||||
name: "Twitch",
|
||||
type: "oauth",
|
||||
authorization: {
|
||||
params: {
|
||||
scope: "openid user:read:email",
|
||||
claims: {
|
||||
id_token: {
|
||||
email: null,
|
||||
picture: null,
|
||||
preferred_username: null
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
idToken: true,
|
||||
profile(profile) {
|
||||
return {
|
||||
id: profile.sub,
|
||||
name: profile.preferred_username,
|
||||
email: profile.email,
|
||||
image: profile.picture
|
||||
};
|
||||
},
|
||||
style: {
|
||||
logo: "/twitch.svg",
|
||||
bg: "#65459B",
|
||||
text: "#fff"
|
||||
},
|
||||
options
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user