File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ - (BOOL)handleOpenURL:(NSURL *)URL sourceApplication:(nullable NSString *)source
308308
309309- (void )authorizationController : (ASAuthorizationController *)controller didCompleteWithAuthorization : (ASAuthorization *)authorization API_AVAILABLE(ios(13.0 )) {
310310 ASAuthorizationAppleIDCredential* appleIDCredential = authorization.credential ;
311- NSString *idToken = [NSString stringWithUTF8String: [ appleIDCredential.identityToken bytes ] ];
311+ NSString *idToken = [[ NSString alloc ] initWithData: appleIDCredential.identityToken encoding: NSUTF8StringEncoding ];
312312 FIROAuthCredential *credential = [FIROAuthProvider credentialWithProviderID: @" apple.com"
313313 IDToken: idToken
314314 accessToken: nil ];
You can’t perform that action at this time.
0 commit comments