mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
refactor(useapplelogin): fallback in case no name
This commit is contained in:
parent
1568ba1bb2
commit
22ba03dea2
1 changed files with 2 additions and 1 deletions
|
|
@ -23,7 +23,8 @@ const getCredentials = async (state: string): Promise<AppleLoginResponse> => {
|
|||
token: user.token,
|
||||
sub: user.sub,
|
||||
email: user.email,
|
||||
name: user.name
|
||||
// We might not receive a name from Apple, so we use an empty string as a fallback
|
||||
name: user.name ?? '',
|
||||
});
|
||||
} catch (e) {
|
||||
console.error('Failed to get credentials from Apple auth', e);
|
||||
|
|
|
|||
Loading…
Reference in a new issue