firebaseauth

package module
v0.0.0-...-ba0cd7b Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthToken

func AuthToken(ctx context.Context) (*auth.Token, bool)

AuthToken gets the auth token from the context

func JWTHandler

func JWTHandler(credentialsFilePath *string) func(next http.Handler) http.Handler

JWTHandler returns a router middleware for JWT token verification using the Firebase SDK. If credentialsFilePath is nil, make sure to set GOOGLE_APPLICATION_CREDENTIALS environment variable, otherwise will fail to initialize the SDK. See: https://firebase.google.com/docs/admin/setup#initialize_the_sdk for more info.

Types

This section is empty.

Jump to

Keyboard shortcuts

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