idtoken

package module
v0.1.3-0...-ef19650 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 4 Imported by: 0

README

firebase-idtoken-gen

A CLI tool and a package to generate firebase authentication id token

Installation

go get -u github.com/yuzuy/firebase-idtoken-gen

or

go get -u github.com/yuzuy/firebase-idtoken-gen/cmd/firebase-idtoken-gen

Usage

CLI

Usage of firebase-idtoken-gen:
  -apikey string
    	specify api key of your firebase project
  -credfile string
    	specify your firebase service account credential filepath. by default, read from GOOGLE_APPLICATION_CREDENTIALS or FIREBASE_CONFIG
  -p string
    	specify your firebase project id. by default, read from application default credentials

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ctx context.Context, client *auth.Client, uid string, opt ...option.ClientOption) (string, error)

Generate generates id token. opt needs a client option to call googleapis

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL