package
0.5.1
Repository: https://github.com/alvarios/wireframe.git
Documentation: pkg.go.dev

# README

#firebase

Create a new auth.Client by simply calling one method and setting one env variable.

Need

  • json file that contains your firebase token
  • set FIREBASE_KEY_PATH = "path to your json file"

Code

package main 

import "github.com/alvarios/wireframe/firebase"
import "fmt"

func main(){
    client := firebase.SetupFirebaseFromEnv()
    fmt.Printf("This is my new client %v" , client)
}

The setup function panic if it's fail to init the nex firebase client.

# Packages

No description provided by the author

# Functions

SetupFirebase create a new *auth.Client.
SetupFirebaseFromEnv create a new *auth.Client, using env variable You must init FIREBASE_KEY_PATH environment variable to the "root directory path" to the credentials file */.