# README
Firebase Admin Auth
Description
This repo contains a simple auth service using Firebase Admin SDK.
App feature:
- Verify ID token
This simple app is an admin app for firebase-auth project. The goals of this project is to explain the flow to use Firebase Auth on a custom backend service.
This project written in Go.
How to Run
- Create or use existing Firebase project
- Go to
Project settings > Service accounts
- On
Firebase Admin SDK
chooseGenerate new private key
- Place the private key downloaded on
config
directory of this project - Create
.env
on the root of this project by copy-paste.env.example
provided (more on Environment Variables section) - Install dependencies
go mod download go mod tidy
- Run the project
go run main.go
Environment Variables
GOOGLE_APPLICATION_CREDENTIALS
: relative/absolute path to the service account JSON file (e.g.config/service-account.json
)ID_TOKEN
: ID token to be verify, obtained fromuser
object on client