What does it cost to add Google and Apple sign-in with self-hosted Better Auth?
Asked by
3p5 inch reel
I'm using Better Auth for email registration, but I'd like to make sign-up and login easier by adding one-click Google and Apple sign-in. Is Apple's developer membership, which costs about $99 per year, required for Sign in with Apple, or is there any free alternative? For Google, I understand the service is generally free, but I'm unsure whether the developer contact email from the OAuth setup is shown to users during authorization. Does Apple expose a similar email, or can it provide a private relay address instead? I'm also interested in the practical experience of self-hosting this setup, including any recurring costs, configuration issues, and whether using Better Auth is a safe approach for email and social login.
Answers
Sign in with Apple requires an Apple Developer Program membership, which is currently about $99 per year. There isnโt a normal free path around that requirement. Apple also requires your website and authentication setup to be configured before it will approve the flow. Google OAuth generally has no cost for ordinary applications. The email you enter as the developer contact is for Google to reach you and isnโt normally displayed as part of the user authorization screen; users typically see your app name and the permissions being requested.
Reply to this answer
Self-hosting Better Auth doesnโt mean you can self-host Google or Appleโs identity services. Your application and auth database can run on your own infrastructure, but the OAuth requests still communicate with Google and Apple. Better Auth can handle the security-sensitive parts of sessions, password hashing, callbacks, and provider integration, which is much safer than inventing your own authentication system. Email login isnโt inherently unsafe when itโs implemented by a reputable, maintained library; just follow its password, session, verification, reset-token, and rate-limiting guidance.
dovetail_joint!: For a small project, Google is usually the simplest low-cost provider to start with. The main ongoing work is keeping redirect URLs, secrets, callback handling, and provider credentials configured correctly rather than paying a per-login fee.
Reply to this answer
Apple can provide a private relay address when users choose to hide their email, so your application may receive an Apple-generated forwarding address rather than the personโs real one. Be careful with Appleโs implementation details too: the client secret is a JWT signed with a private key and it expires after at most six months, so rotation should be automated. Also, Apple only sends the userโs full name during the first authorization. Save it immediately because later logins may not include it.
Reply to this answer
Add your answer
Answers are reviewed before publication.
+shade tolerant: So using a personal email as the Google developer contact usually isnโt a privacy problem, since itโs separate from the account information shown to users. Appleโs developer membership and contact details are handled through Appleโs developer setup instead.