Skip to content

An example on how to integrate Ding with the Firebase Auth SDK

Notifications You must be signed in to change notification settings

ding-live/firebase-integration-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase with Ding OTP

This Go REST API shows how to authenticate users using the Firebase SDK while using Ding as an OTP provider.

Setup

To get started, you need to setup a Firebase project in the Firebase console. Learn more here.

Environment

You need the following envs to connect to your Firebase project and the Ding API.

  • SA_FILE_PATH: A path to your service account JSON file
  • DING_API_KEY: Your Ding API key
  • DING_CUSTOMER_UUID: Your Ding customer UUID

API

The API exposes two routes:

  • send_code: triggers an authentication message delivery
  • verify: allows the frontend to send the entered code for verification and returns a Firebase JWT token

About

An example on how to integrate Ding with the Firebase Auth SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages