This commit is contained in:
oiov
2024-11-15 14:40:05 +08:00
parent 163627b93b
commit 1baaf8680b
2 changed files with 10 additions and 9 deletions
+8 -7
View File
@@ -19,12 +19,13 @@ const linuxDoProvider: any = {
profile: (profile: any) => {
console.log("profile", profile);
return {
id: profile.id,
username: profile.username,
name: profile.name,
trust_level: profile.trust_level,
image: profile.avatar_template,
// active: profile.user.active,
id: profile.id.toString(),
name: profile.username,
image: profile.avatar_url,
email: profile.email,
active: profile.active ? 1 : 0,
// username: profile.username,
// trust_level: profile.trust_level,
// silenced: profile.user.silenced,
// email: profile.user.email,
};
@@ -45,6 +46,6 @@ export default {
apiKey: env.RESEND_API_KEY,
from: "wrdo <support@wr.do>",
}),
// linuxDoProvider,
linuxDoProvider,
],
} satisfies NextAuthConfig;
+2 -2
View File
@@ -105,7 +105,7 @@ export function UserAuthForm({ className, type, ...props }: UserAuthFormProps) {
)}{" "}
Github
</button>
{/* <button
<button
type="button"
className={cn(buttonVariants({ variant: "outline" }))}
onClick={() => {
@@ -126,7 +126,7 @@ export function UserAuthForm({ className, type, ...props }: UserAuthFormProps) {
<img src="/_static/images/linuxdo.webp" className="mr-2 size-4" />
)}{" "}
LinuxDo
</button> */}
</button>
<div className="relative my-3">
<div className="absolute inset-0 flex items-center">