Skip to content

Commit 69eb00d

Browse files
committed
Avoid encoding challenge again
1 parent eefcbbc commit 69eb00d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FirebaseAppCheck/Sources/AppAttestProvider/FIRAppAttestProvider.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ - (void)getTokenWithCompletion:(void (^)(FIRAppCheckToken *_Nullable, NSError *_
190190
challenge:(NSData *)challenge {
191191
return [FBLPromise onQueue:self.queue
192192
do:^id _Nullable {
193-
return [challenge base64EncodedDataWithOptions:0];
193+
// TODO: Hash the `challenge`.
194+
return challenge;
194195
}]
195196
.thenOn(
196197
self.queue,

0 commit comments

Comments
 (0)