Skip to content

auth/Client.VerifyIDToken should verify (some) fields before checking signature #174

@palsivertsen

Description

@palsivertsen

Field validation in auth/Client.VerifyIDToken(), like checking Expires and IssuedAt, should be done before the, potentially expensive, operation verifyToken. Deep down verifyToken uses locking and issues a http request. Although this is not the biggest overhead, it would be nice if e.g. expired tokens where not dependent on sub-requests to Firebase API (an expired token is not valid no matter the signature)

Metadata

Metadata

Assignees

No one assigned

    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