Add Sign in with Apple sorta
This commit is contained in:
parent
c62926b8f2
commit
708c0553f5
@ -72,8 +72,8 @@ const AppleSignIn: React.FC<AppleSignInProps> = ({
|
||||
options: {
|
||||
data: {
|
||||
full_name: name,
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
if (signUpError) {
|
||||
@ -82,7 +82,6 @@ const AppleSignIn: React.FC<AppleSignInProps> = ({
|
||||
|
||||
// User created successfully
|
||||
onSignInComplete?.();
|
||||
|
||||
} catch (error) {
|
||||
console.error('Apple sign in error:', error);
|
||||
|
||||
@ -91,7 +90,7 @@ const AppleSignIn: React.FC<AppleSignInProps> = ({
|
||||
} else {
|
||||
Alert.alert(
|
||||
'Sign in error',
|
||||
'An error occurred while signing in with Apple. Please try again.'
|
||||
'An error occurred while signing in with Apple. Please try again.',
|
||||
);
|
||||
onSignInError?.(error);
|
||||
}
|
||||
|
@ -31,8 +31,9 @@ const ThemedTextInput: React.FC<ThemedTextInputProps> = ({
|
||||
{
|
||||
width,
|
||||
height,
|
||||
borderColor: Colors[scheme].accent },
|
||||
containerStyle,
|
||||
borderColor: Colors[scheme].accent,
|
||||
},
|
||||
containerStyle,
|
||||
]}
|
||||
>
|
||||
<TextInput
|
||||
|
@ -28,18 +28,10 @@ const config = {
|
||||
teamId: process.env.APPLE_TEAM_ID || '',
|
||||
clientId: process.env.AUTH_APPLE_ID || '',
|
||||
keyId: process.env.APPLE_KEY_ID || '',
|
||||
privateKeyPath: path.resolve(
|
||||
__dirname,
|
||||
process.env.APPLE_PRIVATE_KEY_PATH || '',
|
||||
),
|
||||
privateKeyPath: path.resolve(__dirname, process.env.APPLE_PRIVATE_KEY_PATH || ''),
|
||||
};
|
||||
|
||||
if (
|
||||
!config.teamId ||
|
||||
!config.clientId ||
|
||||
!config.keyId ||
|
||||
!config.privateKeyPath
|
||||
) {
|
||||
if (!config.teamId || !config.clientId || !config.keyId || !config.privateKeyPath) {
|
||||
console.error('Missing necessary Apple configuration');
|
||||
process.exit(1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user