Auto-commit 2026-04-29 16:31
This commit is contained in:
33
node_modules/next-auth/providers/freshbooks.js
generated
vendored
Normal file
33
node_modules/next-auth/providers/freshbooks.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = Freshbooks;
|
||||
function Freshbooks(options) {
|
||||
return {
|
||||
id: "freshbooks",
|
||||
name: "Freshbooks",
|
||||
type: "oauth",
|
||||
version: "2.0",
|
||||
params: {
|
||||
grant_type: "authorization_code"
|
||||
},
|
||||
accessTokenUrl: "https://api.freshbooks.com/auth/oauth/token",
|
||||
authorizationUrl: "https://auth.freshbooks.com/service/auth/oauth/authorize?response_type=code",
|
||||
profileUrl: "https://api.freshbooks.com/auth/api/v1/users/me",
|
||||
async profile(profile) {
|
||||
return {
|
||||
id: profile.response.id,
|
||||
name: `${profile.response.first_name} ${profile.response.last_name}`,
|
||||
email: profile.response.email
|
||||
};
|
||||
},
|
||||
style: {
|
||||
logo: "/freshbooks.svg",
|
||||
text: "#fff",
|
||||
bg: "#0075dd"
|
||||
},
|
||||
...options
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user