mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 17:15:48 +00:00
fix(chore): lint
This commit is contained in:
parent
592fb17fa1
commit
a0fa5e2a92
1 changed files with 5 additions and 4 deletions
|
|
@ -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'));
|
||||
|
|
|
|||
Loading…
Reference in a new issue