apple sign in button

This commit is contained in:
Dobromir Popov
2024-05-02 20:24:06 +03:00
parent b2996914a9
commit e20bd294af
2 changed files with 12 additions and 2 deletions

View File

@ -72,6 +72,13 @@ export default function SignIn({ csrfToken }) {
</button>
{/* Add more buttons for other SSO providers here in similar style */}
</div>
{/* Apple Sign-In Button */}
<button onClick={() => signIn('apple', { callbackUrl: '/' })}
className="mt-4 flex items-center justify-center w-full py-3 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
<img loading="lazy" height="24" width="24" alt="Apple logo"
src="https://authjs.dev/img/providers/apple.svg" className="mr-2" />
Влез чрез Apple
</button>
{/* Divider (Optional) */}
<div className="w-full max-w-xs mt-8 mb-8">