Skip to content

Commit 50009b6

Browse files
committed
after format
1 parent 712f312 commit 50009b6

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/components/iam.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -734,15 +734,15 @@ export async function deactivateAccount({secretKey, token, password}) {
734734
return response;
735735
}
736736

737-
738737
export async function appleSignIn({
739738
identityToken,
740739
authorizationCode,
741740
fullName,
742741
}) {
743-
744-
const givenName = fullName?.givenName !== null || false ? fullName?.givenName : '';
745-
const familyName = fullName?.familyName !== null || false ? fullName?.familyName : '';
742+
const givenName =
743+
fullName?.givenName !== null || false ? fullName?.givenName : '';
744+
const familyName =
745+
fullName?.familyName !== null || false ? fullName?.familyName : '';
746746

747747
const response = await server.loadJson(
748748
`${Config.apiUrl}${Endpoints.PROJECT.MEMBERSHIP.USERS.SIGN_WITH_APPLE}?authorizationCode=${authorizationCode}&givenName=${givenName}&familyName=${familyName}`,
@@ -757,12 +757,13 @@ export async function appleSignIn({
757757
body: JSON.stringify({
758758
provider: 'apple',
759759
accessToken: identityToken,
760-
meta: { authorizationCode: authorizationCode,
761-
givenName: givenName,
762-
familyName: familyName,
760+
meta: {
761+
authorizationCode: authorizationCode,
762+
givenName: givenName,
763+
familyName: familyName,
763764
},
764-
}),
765+
}),
765766
}
766767
);
767768
return response;
768-
}
769+
}

src/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const CONFIG = {
9595
CREATE_DEACTIVATION: '/v2/membership/users/deactivate/token',
9696
CHECK_DEACTIVATION: '/v2/membership/users/deactivate/token',
9797
DEACTIVATE_ACCOUNT: '/v2/membership/users/deactivate',
98-
SIGN_WITH_APPLE: '/v2/auth/apple'
98+
SIGN_WITH_APPLE: '/v2/auth/apple',
9999
},
100100
},
101101
FILES: {

0 commit comments

Comments
 (0)