Skip to main content

Go Fiber Firebase Authentication Example

Github StackBlitz

This example use gofiber-firebaseauth middleware to authenticate the endpoints. Find the documentation for middleware here for more configurations options docs

Setting Up

  • Clone the repo and set your firebase credentials in your .env file Need Configured Firebase Authentication App and Google Service Account Credential (JSON file contain credential). You can get all these config from Firebase Console.
SERVICE_ACCOUNT_JSON = "path to service account credential json"

Start

go build
go run main