Skip to content

yasszu/go-firebase-auth-server

Repository files navigation

Firebase Auth Server

Getting Started

Setup environment

  1. Create a .env file
    cp build/debug/server/.env.default build/debug/server/.env
  2. Download service-account-file.json
  3. Edit the .env file
  4. Add login page
    cp ./config.default.js ./public/javascripts/config.js
  5. Set Firebase configuration at public/javascripts/config.js

Run Server

  1. Run containers
    make run
    
  2. Run migration
    make migrate-up
    
  3. Open http://localhost:8888/

API

POST /authenticate

curl --location --request POST 'localhost:8888/authenticate' \
--form 'id_token={your_id_token}'

GET /v1/me

curl --location --request GET 'localhost:8888/v1/me' \
--header 'Authorization: Bearer {your_id_token}'

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published