From b4642c2ad5b0114fc0f7a916f007e8d247966e51 Mon Sep 17 00:00:00 2001 From: Bereket Engida Date: Mon, 30 Sep 2024 20:08:17 +0300 Subject: [PATCH] fix: discord provider scope --- demo/nextjs/components/logo.tsx | 19 +++++----- demo/nextjs/components/sign-in.tsx | 15 +++++++- demo/nextjs/lib/auth.ts | 4 +++ .../src/social-providers/discord.ts | 36 ++++++++++++------- .../src/social-providers/twitch.ts | 1 - 5 files changed, 50 insertions(+), 25 deletions(-) diff --git a/demo/nextjs/components/logo.tsx b/demo/nextjs/components/logo.tsx index 05fb13e4..21d2afc8 100644 --- a/demo/nextjs/components/logo.tsx +++ b/demo/nextjs/components/logo.tsx @@ -3,21 +3,18 @@ import { SVGProps } from "react"; export const Logo = (props: SVGProps) => { return ( - - - - - ); diff --git a/demo/nextjs/components/sign-in.tsx b/demo/nextjs/components/sign-in.tsx index 504231a9..10ed9d06 100644 --- a/demo/nextjs/components/sign-in.tsx +++ b/demo/nextjs/components/sign-in.tsx @@ -14,7 +14,7 @@ import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { PasswordInput } from "@/components/ui/password-input"; import { signIn } from "@/lib/auth-client"; -import { GitHubLogoIcon } from "@radix-ui/react-icons"; +import { DiscordLogoIcon, GitHubLogoIcon } from "@radix-ui/react-icons"; import { Key, Loader2 } from "lucide-react"; import Link from "next/link"; import { useRouter } from "next/navigation"; @@ -118,6 +118,19 @@ export default function SignIn() { Continue with Github +