This page documents Apple authentication in Lovable Cloud. It is available only for apps using the built-in backend (Cloud). For an overview of all sign-in methods, see Users and authentication.
- Managed by Lovable: Lovable manages the OAuth configuration and security updates. This is the default and requires no Apple Developer account.
- Your own credentials: you connect credentials from your own Apple Developer account and manage their rotation yourself.
- The user clicks Sign in with Apple in your app
- Apple asks them to confirm with their Apple Account
- The user chooses whether to share their email address with your app
- Apple redirects the user back to your app, signed in
Why use Apple sign-in
Apple sign-in reduces signup friction for users in the Apple ecosystem, and it appeals to privacy-conscious audiences:- Faster onboarding without password creation
- A trusted, familiar confirmation flow on Apple devices
- Built-in privacy controls, including the option to hide the real email address
- Reduced password reset and account recovery overhead
- Pre-verified identity backed by the user’s Apple Account
Common use cases
Apple sign-in is commonly used for:- Consumer apps with a large iPhone, iPad, or Mac audience
- Apps that pair a Lovable web app with a mobile experience
- Products for privacy-conscious users who prefer not to share their real email
- Apps that already offer Google sign-in and want parity for Apple users
Apple authentication setup options
The end-user experience is identical in both modes; the difference is who manages the OAuth credentials.- Managed by Lovable (default)
- Your own credentials
Lovable manages the OAuth configuration and related security updates. No Apple Developer account is required.Use this option if you:Lovable enables the provider in Cloud tab → Users → Auth settings → Apple and adds the sign-in button to your app’s login page. You can also enable it manually from the same settings.In Managed by Lovable mode, users must share an email address with your app to complete sign-in. Users who pick Apple’s Hide My Email option still provide one: Apple shares a private relay address with your app instead of the real one.
- want zero setup
- do not need the flow tied to your own Apple Developer account
- do not need to control whether users can sign in without sharing an email
1
Prompt Lovable to add Apple sign-in
2
Test the flow
Verify that:
- a Sign in with Apple button appears on your login page
- users are redirected to Apple to confirm
- users return to the app in a signed-in state
- new users appear in Cloud tab → Users
Managing Apple authentication
You can switch between Managed by Lovable and Your own credentials at any time from Cloud tab → Users → Auth settings → Apple. Existing accounts are kept, but Apple identifies users per developer team: users who signed up under the previous mode may not be recognized when they next sign in with Apple, and Hide My Email relay addresses change with the team. Plan the switch before your app has many Apple users. To remove the sign-in option, ask Lovable in chat:Troubleshooting
Apple sign-in stopped working after months of working fine
Apple sign-in stopped working after months of working fine
Your client secret has probably expired. Apple limits each JWT to 6 months. Generate a new secret from your
.p8 key with Generate secret and save it in the Apple auth settings.Users see a redirect or invalid client error
Users see a redirect or invalid client error
The return URLs in your Apple Services ID configuration don’t match the redirect URLs Lovable shows. Copy every return URL from Lovable into the Apple Developer portal exactly, then retry. If sign-in fails only on your published app or custom domain, also check your project’s redirect URLs.
Support can't reach a user who hid their email
Support can't reach a user who hid their email
Apple forwards mail sent to the relay address only while the user keeps forwarding on. Treat the relay address like any other email in your app, and offer an in-app way for users to update their contact details.
FAQ
Do I need an Apple Developer account?
Do I need an Apple Developer account?
Only if you use your own credentials. In Managed by Lovable mode, Lovable provides the OAuth configuration and no Apple Developer account is needed.
What happens when a user hides their email?
What happens when a user hides their email?
Apple shares a private relay address with your app instead of the real one, so the user still has an email your app can use. With your own credentials, the Allow users without an email toggle additionally controls whether users can sign in without providing any address.
Why did Apple sign-in suddenly stop working?
Why did Apple sign-in suddenly stop working?
If you use your own credentials, the most common cause is an expired client secret: Apple limits each JWT to 6 months. Generate a new secret from your
.p8 key and save it in the Apple auth settings.Does Apple sign-in replace email and password sign-in?
Does Apple sign-in replace email and password sign-in?
Can I switch between managed and my own credentials later?
Can I switch between managed and my own credentials later?
Yes, anytime from Cloud tab → Users → Auth settings → Apple. Existing accounts are kept, but Apple identifies users per developer team, so users who signed up under the previous mode may not be recognized after the switch. Plan the switch before your app has many Apple users.
Do users need an iPhone to use Sign in with Apple?
Do users need an iPhone to use Sign in with Apple?
No. Sign in with Apple works in any browser. Users sign in with their Apple Account credentials, and users on Apple devices get the smoothest flow.