Go4Food Go4Food Docs v1.0.0
Step 1 · Firebase Backend

Enable Authentication

Turn on the sign-in methods your apps use. It takes a few clicks per method.

3 min

Go4Food uses four sign-in methods: Email/Password, Phone, Google and Apple. Email/Password is required. Turn on the others now as well, so every sign-in button in the apps works.

Open Authentication#

In the left menu, open Security and click Authentication, then Get started.

Security → Authentication
Security → Authentication

Open Sign-in method#

Open the Sign-in method tab. The four providers Go4Food uses are Email/Password, Phone, Google and Apple (marked in red).

Sign-in method: the four providers Go4Food uses
Sign-in method: the four providers Go4Food uses

Enable each one#

Click a provider, switch Enable on and click Save. For Email/Password leave Email link off. For Google, choose a support email.

Enable, then Save
Enable, then Save

Add the next provider#

Click Add new provider and repeat until all four show Enabled.

Add new provider
Add new provider

Who uses which method#

MethodUsed byExtra setup
Email/PasswordEvery app and panel. Admin and employee logins, restaurant owners, drivers and customers who sign up with email.None.
Phone (SMS code)Customer app and website, restaurant app and web panel, driver app.Android needs the SHA-1 and SHA-256 keys: SHA keys. SMS is charged per message.
GoogleCustomer app and website, restaurant app and web panel, driver app.Android needs the SHA-1 key. If Google asks, fill in the OAuth consent screen (app name, support email, developer contact).
AppleCustomer, restaurant and driver apps on iPhone.An Apple Developer account and the Sign in with Apple capability in Xcode: iPhone release.

Not shipping to the App Store yet?

Apple sign-in needs an Apple Developer account (99 USD per year). You can leave Apple off for now and turn it on before you publish the iPhone apps.

Testing phone sign-in without SMS costs

In AuthenticationSign-in methodPhone, add test phone numbers with a fixed code. They sign in without sending a real SMS.

Websites on your own domain

When the customer website, the restaurant web panel or the admin panel runs on your own domain, add that domain in AuthenticationSettingsAuthorized domains, or Google and phone sign-in are refused there. See Domains & SSL.

Done

Sign-in is ready. Next, download the service account key for the setup tool.