timothymiller / t4-app

A powerful cross-platform UI toolkit for building actually native iOS, Android, macOS, Windows, Linux, and Progressive Web Apps with React (Native).
https://t4stack.com
MIT License
1.31k stars 69 forks source link

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

Closed rmarscher closed 6 months ago

rmarscher commented 6 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 6 months ago

Does this support OAuth with the following providers?

rmarscher commented 6 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 6 months ago

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