Skip to content

Conversation

maksymmalyhin
Copy link
Contributor

@maksymmalyhin maksymmalyhin commented May 17, 2021

  • make sure an artifact generated for an old App Attest key is not used to generate assertions

#no-changelog

Copy link
Member

@ncooke3 ncooke3 left a comment

Choose a reason for hiding this comment

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

LGTM. I added a few small comments

/// @return An artifact that is resolved with the artifact data passed into the method in case of
/// success or is rejected with an error.
- (FBLPromise<NSData *> *)setArtifact:(nullable NSData *)artifact;
- (FBLPromise<NSData *> *)setArtifact:(nullable NSData *)artifact forKey:(NSString *)keyID;
Copy link
Member

Choose a reason for hiding this comment

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

Should the keyID have the nonnull attribute that is specified in the method's implementation? Does adding it here give any more type/nullability safety? ... I was wondering about this and unsure

Copy link
Contributor Author