Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Auth Provider #18

Merged
merged 8 commits into from
Jan 30, 2025
Merged

Google Auth Provider #18

merged 8 commits into from
Jan 30, 2025

Conversation

jameslindfors
Copy link
Collaborator

@jameslindfors jameslindfors commented Jan 30, 2025

This addresses issue #3

Implements sign in with google functionality with a reusable auth context provider that protects all the routes when not signed in. It also updates the .gitignore to include the .vscode files and build folders. It also adds and configures eslint.

Notes:
Because using the library requires a native module it cannot be run in the expo go application but the code must be built specifically for android using the following command:
npx expo run android

Warning:
When building on windows the build will fail from react-native-reanimated if the path is too long. To fix this, the local repo folder must be moved to a location with a shorter path. See issue here:
software-mansion/react-native-reanimated#6872

@jameslindfors jameslindfors added the enhancement New feature or request label Jan 30, 2025
Copy link
Collaborator

@moekarakii moekarakii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job on the.eslintrc.js and .gitignore files for consistency/efficiency across the whole project. I see you worked on Including the google sign-In functionality with react native's google auth. Added support for expo secure storage. Updated _layout.tsx to use SessionProvider and Slot, which makes it easier to read/understand, in my opinion. Lastly, the new screens (profile.tsx and auth.tsx) with clean and structured code.

however, it seems there are some conflicts with files layout.tsx, package.json, and the yarn.lock

@moekarakii moekarakii merged commit 086aade into main Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants