Skip to content

Commit

Permalink
fix: 调整authing的部分问题
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhuapiaoyuan committed Sep 11, 2024
1 parent 608003a commit 3029235
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/next-auth-oauth/src/provider/Authing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default function Authing<P extends AuthingProfile>(
} = options;

return {
id: "authing",
id: "authing",
name: "Authing",
type: "oidc",
style: { logo: "/providers/Authing.jpg", bg: "#fff", text: "#000" },
Expand All @@ -143,13 +143,17 @@ export default function Authing<P extends AuthingProfile>(
idToken: true,
issuer: domain + "/oidc",
jwks_endpoint: domain + "/oidc/.well-known/jwks.json",
authorization:{
params: {
scope:"openid email username profile phone"
}
},
wellKnown:
domain + "/oidc/.well-known/openid-configuration",
profile: (profile) => {
console.log("获得到的账号信息:",profile)
return {
id: profile.sub + "",
name: profile.sub,
name: profile.nickname??profile.sub,
email: profile.email,
image: profile.picture,
};
Expand Down

0 comments on commit 3029235

Please sign in to comment.