cloudfunction

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const GOOGLE_TOKEN_URL = "https://oauth2.googleapis.com/token"

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(tokenSource oauth2.TokenSource) (token oauth2.Token, err error)

func JWTAccessTokenSourceFromJSON

func JWTAccessTokenSourceFromJSON(jsonKey []byte, audience string) (oauth2.TokenSource, error)

func NewClient

func NewClient(jwtSource oauth2.TokenSource) *http.Client

Types

type TokenResponse

type TokenResponse struct {
	IdToken string `json:"id_token"`
}

Jump to

Keyboard shortcuts

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