Skip to content

Commit

Permalink
Do not encode slashes in json for webauthn
Browse files Browse the repository at this point in the history
  • Loading branch information
jensutbult committed Nov 12, 2024
1 parent 01d804e commit e529515
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ - (NSData *)jsonData {
@"challenge": websafeChallenge,
@"origin": self.origin};
NSError *error = nil;
NSData *result = [NSJSONSerialization dataWithJSONObject:jsonDictionary options:0 error:&error];
NSData *result = [NSJSONSerialization dataWithJSONObject:jsonDictionary options:NSJSONWritingWithoutEscapingSlashes error:&error];
YKFAssertReturnValue(!error && result, @"Could not serialize the clientDataJson.", nil);

return result;
Expand Down

0 comments on commit e529515

Please sign in to comment.