Skip to content

Components: Auth

Social sign-in buttons.

Generated from apps/theme/src/components/auth/: 1 files, 1 components. Import a component through the @/components/… path shown, so a fork can override it in src/custom/.

@/components/auth/social-login-buttons

apps/theme/src/components/auth/social-login-buttons.tsx client component

<SocialLoginButtons>

"Continue with Google / Apple" entry points.

Renders only when social login is enabled (NEXT_PUBLIC_SOCIAL_LOGIN_ENABLED). Each button kicks off the corresponding NextAuth OAuth flow and, on success, redirects to the server-side bridge (/api/auth/magento-session) which mints the Magento customer token and sets the session cookie. One button covers both register and sign-in (the bridge find-or-creates the customer by email).

No props.