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

feat: Install clerk for expo & nextjs #56

Merged
merged 13 commits into from
Jan 10, 2024
Merged

feat: Install clerk for expo & nextjs #56

merged 13 commits into from
Jan 10, 2024

Conversation

codinsonn
Copy link
Owner

@codinsonn codinsonn commented Dec 29, 2023

This PR adds clerk as an auth provider for Expo & Next.js

  • Add @aetherspace/clerk-auth package workspace with deduped hooks between NextJS & Expo
  • Add AetherClerkProvider to check for env vars and provide a unified Clerk Context Provider
  • Add SignUpScreen, useUserSignUpFormState and route for /sign-up
  • Add SignInScreen, useUserSignInFormState and route for /sign-in
  • Add middleware & updates to autherResolver to provide user request context in SSR & API resolvers
  • Make sure we can render components integrating with Clerk In Storybook
  • Add getRequestContext() resolver & API routes to retrieve the auth context & linked DB user
  • Add schemas for clerk data structures
  • Add SignOutButton to @aetherspace/clerk-auth
  • Update fetchAetherProps(), createDataBridge() & useAetherRoute() to accept headers
  • Add swrClerkAuthHeaderMiddleware to @aetherspace/clerk-auth for use in SWR
  • Make sure the mobile app includes clerk's JWT as Bearer token for authenticated requests
  • Update general docs to be more readable
  • Add docs for @aetherspace/clerk-auth

For a later time

  • Add useAuthenticatedFetch() hook
  • Add authenticatedFetch() util

@codinsonn codinsonn self-assigned this Dec 29, 2023
Copy link

vercel bot commented Dec 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
codinsonndotdev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2024 8:38pm

@codinsonn codinsonn marked this pull request as ready for review January 10, 2024 20:46
@codinsonn codinsonn merged commit 3a870b8 into main Jan 10, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant