Auto-commit 2026-04-29 16:31
This commit is contained in:
28
node_modules/next-auth/providers/faceit.js
generated
vendored
Normal file
28
node_modules/next-auth/providers/faceit.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = FACEIT;
|
||||
function FACEIT(options) {
|
||||
return {
|
||||
id: "faceit",
|
||||
name: "FACEIT",
|
||||
type: "oauth",
|
||||
authorization: "https://accounts.faceit.com/accounts?redirect_popup=true",
|
||||
headers: {
|
||||
Authorization: `Basic ${Buffer.from(`${options.clientId}:${options.clientSecret}`).toString("base64")}`
|
||||
},
|
||||
token: "https://api.faceit.com/auth/v1/oauth/token",
|
||||
userinfo: "https://api.faceit.com/auth/v1/resources/userinfo",
|
||||
profile(profile) {
|
||||
return {
|
||||
id: profile.guid,
|
||||
name: profile.name,
|
||||
email: profile.email,
|
||||
image: profile.picture
|
||||
};
|
||||
},
|
||||
options
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user