FirebaseAuthClient creates a new instance of auth.Client
()
| 470 | |
| 471 | // FirebaseAuthClient creates a new instance of auth.Client |
| 472 | func (container *Container) FirebaseAuthClient() (client *auth.Client) { |
| 473 | container.logger.Debug(fmt.Sprintf("creating %T", client)) |
| 474 | authClient, err := container.FirebaseApp().Auth(context.Background()) |
| 475 | if err != nil { |
| 476 | msg := "cannot initialize firebase auth client" |
| 477 | container.logger.Fatal(stacktrace.Propagate(err, msg)) |
| 478 | } |
| 479 | return authClient |
| 480 | } |
| 481 | |
| 482 | // CloudTasksClient creates a new instance of cloudtasks.Client |
| 483 | func (container *Container) CloudTasksClient() (client *cloudtasks.Client) { |
no test coverage detected