CF as my backend. How to solve auth for mobile apps?

I am building a mobile app and I'd like to use CF as my backend. So I wanna use Workers, D1 and so on. The frontend is a Flutter app.

My problem: How can I solve the auth problem? My initial plan was to use Firebase Auth and then use the Firebase admin sdk to verify a user within a worker. Sadly the Firebase admin sdk is not edge compatible.

How would you solve this problem? I want to use multiple auth flows (Apple, Google, Mail). Authjs has a core package which can be used in CF Workers but it is still experimental..
Was this page helpful?