next-auth
Version:
Authentication for Next.js
34 lines (30 loc) • 682 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Atlassian;
function Atlassian(options) {
return {
id: "atlassian",
name: "Atlassian",
type: "oauth",
authorization: {
url: "https://auth.atlassian.com/oauth/authorize",
params: {
audience: "api.atlassian.com",
prompt: "consent"
}
},
token: "https://auth.atlassian.com/oauth/token",
userinfo: "https://api.atlassian.com/me",
profile(profile) {
return {
id: profile.account_id,
name: profile.name,
email: profile.email,
image: profile.picture
};
},
options
};
}
;