Email and password
Ask the agent for accounts, for example: “Let people create an account with email and password and keep their notes private.” The agent adds Newly Backend if your app doesn’t have it, then builds the sign-up and sign-in screens. Setting up a backend needs credits in your balance. Email and password sign-in works as soon as the backend is set up. There’s nothing to configure. Test it in your preview by creating an account, signing out and signing back in.Google and Apple sign-in
Google and Apple sign-in need credentials from your own Google or Apple developer account. Newly doesn’t provide ready-made test credentials, so these buttons won’t work until you add yours.1
Create the sign-in credentials
For Google, create an OAuth client in Google Cloud. For Apple, set up Sign in with Apple in your Apple Developer account. Each provider gives you a client ID and a client secret. For Apple, the client secret is a signed token you create from a key in your Apple Developer account.
2
Add them to the sign-in service
Set the values as secrets on the auth service of your dev backend, using the newly CLI:For Apple, use
APPLE_CLIENT_ID and APPLE_CLIENT_SECRET. Always include --service auth. The default service doesn’t work.3
Redeploy the backend
Secrets take effect on the next deploy. Ask the agent to redeploy your dev backend. If you deploy yourself with
newly deploy --env dev, run newly pull first, because the command deploys the backend/ folder on your computer.4
Ask the agent to add the buttons
For example: “Add Sign in with Apple and Google sign-in.” The agent adds the Apple button first, because the App Store expects Sign in with Apple when an app offers other social sign-in options.
The newly CLI sets secrets for dev. For production secrets, including Google and Apple credentials for your released app, contact support.
Emails for password reset and verification
Newly Backend doesn’t set up email sending. Password reset and email verification messages won’t go out until your app has an email provider. If your app needs a forgot-password flow or email verification, ask the agent to add an email provider. You’ll need an account with that provider and its API key, which you set as a secret on your backend.Sign-in from a website you own
Sign-in already works from your previews and from your app on a phone. You don’t need to change anything for that. If your app also runs as a website on a domain you own, the sign-in service has to trust that address. Add just that one address to theTRUSTED_ORIGINS secret on the auth service, then redeploy. Never set it to *, which would let any website sign your users in.
Screen order with sign-in and a paywall
When your app has sign-in, onboarding and a paywall, the agent puts them in a fixed order:- Sign-in
- Onboarding
- Paywall
- Home
Related
Data, accounts and Newly Backend
What Newly Backend includes and when the agent adds it.
Production and secrets
Deploy to production and manage API keys.