[PR #5746] [MERGED] chore(demo): enable apple login #6195

Closed
opened 2026-03-13 12:50:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5746
Author: @himself65
Created: 11/4/2025
Status: Merged
Merged: 11/4/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/11/03/apple


📝 Commits (1)

  • d022a02 chore(demo): enable apple login

📊 Changes

3 files changed (+30 additions, -0 deletions)

View changed files

📝 demo/nextjs/.env.example (+2 -0)
📝 demo/nextjs/components/sign-in.tsx (+24 -0)
📝 demo/nextjs/lib/auth.ts (+4 -0)

📄 Description

Summary by cubic

Enable Apple sign-in in the Next.js demo. Adds an Apple button on the sign-in page and configures the Apple OAuth provider with BetterAuth.

  • New Features

    • Apple OAuth added to socialProviders in auth.ts (uses APPLE_CLIENT_ID/APPLE_CLIENT_SECRET).
    • “Sign in with Apple” button on the sign-in page; routes back to /dashboard.
  • Migration

    • Add APPLE_CLIENT_ID and APPLE_CLIENT_SECRET to .env and set values from Apple Developer.
    • Restart the app after updating env variables.

Written for commit d022a02c4e. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5746 **Author:** [@himself65](https://github.com/himself65) **Created:** 11/4/2025 **Status:** ✅ Merged **Merged:** 11/4/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/11/03/apple` --- ### 📝 Commits (1) - [`d022a02`](https://github.com/better-auth/better-auth/commit/d022a02c4e92001559fc1da4d695c671da2d78e7) chore(demo): enable apple login ### 📊 Changes **3 files changed** (+30 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `demo/nextjs/.env.example` (+2 -0) 📝 `demo/nextjs/components/sign-in.tsx` (+24 -0) 📝 `demo/nextjs/lib/auth.ts` (+4 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Enable Apple sign-in in the Next.js demo. Adds an Apple button on the sign-in page and configures the Apple OAuth provider with BetterAuth. - New Features - Apple OAuth added to socialProviders in auth.ts (uses APPLE_CLIENT_ID/APPLE_CLIENT_SECRET). - “Sign in with Apple” button on the sign-in page; routes back to /dashboard. - Migration - Add APPLE_CLIENT_ID and APPLE_CLIENT_SECRET to .env and set values from Apple Developer. - Restart the app after updating env variables. <sup>Written for commit d022a02c4e92001559fc1da4d695c671da2d78e7. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 12:50:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#6195