fix(chore): lint

This commit is contained in:
Timothy Z. 2025-04-10 12:45:06 +03:00
parent 592fb17fa1
commit a0fa5e2a92

View file

@ -45,15 +45,16 @@ const useAppleLogin = (): [() => Promise<AppleLoginResponse>, () => void] => {
scope: 'name email',
redirectURI: window.location.origin,
state: 'signin',
usePopup: true
usePopup: true,
});
window.AppleID.auth.signIn()
window.AppleID.auth
.signIn()
.then((response: AppleSignInResponse) => {
if (response.authorization) {
const email = response.email || '';
const sub = response.user;
let name = '';
if (response.fullName) {
const firstName = response.fullName.firstName || '';
@ -70,7 +71,7 @@ const useAppleLogin = (): [() => Promise<AppleLoginResponse>, () => void] => {
token: response.authorization.id_token,
sub: sub,
email: email,
name: name
name: name,
});
} else {
reject(new Error('No authorization received from Apple'));