When signing in with Apple, the TAuthorizationControllerDelegate stores the received authorization credentials to a TAppleIDCredentials record. However, it seems you've accidentally stored the wrong value in one of the records fields:
Should it not be the value LAppleIDCredential.authorizationCode? Something like this, considering it is of type NSData:
if LAppleIDCredential.authorizationCode <> nil then
begin
var
LAuthCode := TNSString.Wrap(TNSString.Alloc.initWithData(LAppleIDCredential.authorizationCode, NSUTF8StringEncoding));
if LAuthCode <> nil then
LCredentials.AuthorizationCode := NSStrToStr(LAuthCode);
end;
When signing in with Apple, the TAuthorizationControllerDelegate stores the received authorization credentials to a TAppleIDCredentials record. However, it seems you've accidentally stored the wrong value in one of the records fields:
Should it not be the value LAppleIDCredential.authorizationCode? Something like this, considering it is of type NSData: