TwentyT
Twenty10mo ago
9 replies
Amiteshwar

Architecture to Google OAuth

Hi,
I'm trying to self-host twenty and add auth that restricts Google Sign in to specific email addresses with a new login page. I'm getting errors in docker.

Here's what I did:
1. Created twenty-auth-backend package with an emails guard. In twenty-server: Added guard to google-auth.controller.ts. Added providers to app.module.ts
2. Created twenty-auth-frontend package with a custom login page. In twenty-front: Created custom Sign In Page (src/pages/auth/_custom-sign-in-up.tsx). Modified router in useCreateAppRouter.tsx

For running the code, I modified the docker-compse.yml accordingly. But keep getting errors.

I would really appreciate any help!
Was this page helpful?