Skip to content

Commit

Permalink
refactor: providers component
Browse files Browse the repository at this point in the history
  • Loading branch information
rharkor committed Aug 11, 2023
1 parent 74c4c3a commit f049b9e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/[lang]/(sys-auth)/providers.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { getProviders } from "next-auth/react"
import GithubSignIn from "@/components/auth/github-sign-in"
import { TDictionary } from "@/lib/langs"

export default async function Providers({ dictionary }: { dictionary: TDictionary }) {
const providers = await getProviders()

return <>{providers?.github && <GithubSignIn provider={providers.github} dictionary={dictionary} />}</>
}

0 comments on commit f049b9e

Please sign in to comment.