Skip to content

Why is the client context not used in verifyIDToken? #268

@xeoncross

Description

@xeoncross

For some reason the ctx that is passed in is not used, instead a new blank context is created for no purpose.

func verifyIDToken(ctx context.Context, app *firebase.App, idToken string) *auth.Token {
// [START verify_id_token_golang]
client, err := app.Auth(context.Background())

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions