Add Sign in with Apple sorta

This commit is contained in:
Gabriel Brown 2025-03-05 12:58:41 -06:00
parent c62926b8f2
commit 708c0553f5
4 changed files with 29 additions and 37 deletions

View File

@ -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);
}

View File

@ -31,7 +31,8 @@ const ThemedTextInput: React.FC<ThemedTextInputProps> = ({
{
width,
height,
borderColor: Colors[scheme].accent },
borderColor: Colors[scheme].accent,
},
containerStyle,
]}
>

View File

@ -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);
}