Skip to content

Conversation

@lahirumaramba
Copy link
Member

  • Update to beta
  • Add integration test for verify token api

@lahirumaramba lahirumaramba added the release:stage Stage a release candidate label May 10, 2021
@lahirumaramba lahirumaramba requested a review from hiranya911 May 10, 2021 16:21
@lahirumaramba lahirumaramba assigned weixifan and unassigned hiranya911 May 10, 2021
@lahirumaramba lahirumaramba requested review from weixifan and removed request for hiranya911 May 10, 2021 16:56
private toAppCheckToken(resp: HttpResponse): AppCheckToken {
const token = resp.data.attestationToken;
// `timeToLive` is a string with the suffix "s" preceded by the number of seconds,
// `ttl` is a string with the suffix "s" preceded by the number of seconds,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting -- unrelated to this review, the ttl is actually a textual representation of a Duration proto as per AIP-142 and the Duration documentation. The only downside is that parsing it via Duration might cost us an additional dependency.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. I think for Javascript (Node.js) we can parse the JSON by referring to the JSON Mapping section in the proto. Can confirm that the JS SDK follows the same approach.

@weixifan
Copy link

LGTM!

@lahirumaramba lahirumaramba merged commit 8ceef89 into lm-fac May 10, 2021
@lahirumaramba lahirumaramba deleted the lm-fac-beta branch May 10, 2021 19:34
lahirumaramba added a commit that referenced this pull request May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:stage Stage a release candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants