testutil

package
v0.0.0-...-2a35243 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirebaseIDToken

func FirebaseIDToken(ctx context.Context, userID string, tenantID string, google *config.Google) (string, error)

FirebaseIDToken returns a real ID token that can be used in e2e tests involving Firebase authentication. The token is created for the given userID, which must be specified. tenantID is optional, when unset, the user is assumed to be in the default tenant.

This method will use the service account integration-test@<gcp project>.iam.gserviceaccount.com for issuing tokens and also set the quota project to the repo's configured GCP project.

Types

This section is empty.

Jump to

Keyboard shortcuts

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