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.
Click to show internal directories.
Click to hide internal directories.