NeahNew/node_modules/next-auth/src/providers/osso.js
2025-05-03 14:17:46 +02:00

21 lines
461 B
JavaScript

/** @type {import(".").OAuthProvider} */
export default function Osso(options) {
return {
id: "osso",
name: "Osso",
type: "oauth",
authorization: `${options.issuer}oauth/authorize`,
token: `${options.issuer}oauth/token`,
userinfo: `${options.issuer}oauth/me`,
profile(profile) {
return {
id: profile.id,
name: profile.name,
email: profile.email,
image: null,
}
},
options,
}
}