timothymiller / t4-app

Full stack meta-framework for building iOS, Android, and Progressive Web Apps with Tamagui and deploying to Cloudflare.
https://t4stack.com
MIT License
1.5k stars 84 forks source link

Update to latest lucia v3 beta, oslo and arctic #125

Closed rmarscher closed 11 months ago

rmarscher commented 11 months ago

This includes the commits in #124 so if you merge that first it will make this PR a little easier to review. Thanks a lot.

timothymiller commented 11 months ago

Does this support OAuth with the following providers?

rmarscher commented 11 months ago

Does this support OAuth with the following providers?

  • Apple
  • Google
  • Discord
  • Github

Yes. I reorganized recently so the provider implementation is all in this file: https://github.com/timothymiller/t4-app/blob/lucia/packages/api/src/auth/oauth.ts

They have been defined here and these types are imported in app code for type safety with the list of supported providers https://github.com/timothymiller/t4-app/blob/lucia/packages/api/src/auth/providers.ts

ex. https://github.com/rmarscher/t4-app/blob/lucia/packages/app/features/sign-in/screen.tsx#L18-L19

rmarscher commented 11 months ago

That being said... more testing wouldn't hurt. I have mostly been testing Google OAuth on web.