fix: apple idp configuration (#6575)

* docs(apple-idp): remove client id and secret from documentation, as it is not needed

* fix(apple-idp): fix reading of key file by using content type of file
This commit is contained in:
Dishan Sivakumaran
2023-09-18 07:39:55 +02:00
committed by GitHub
parent 9266f8f00b
commit e5083b62a6
2 changed files with 2 additions and 2 deletions

View File

@@ -246,7 +246,8 @@ export class ProviderAppleComponent {
return (e) => {
const keyBase64 = e.target?.result;
if (keyBase64 && typeof keyBase64 === 'string') {
const cropped = keyBase64.replace('data:application/octet-stream;base64,', '');
const contentType = file.type || 'application/octet-stream';
const cropped = keyBase64.replace(`data:${contentType};base64,`, '');
this.privateKey?.setValue(cropped);
}
};