Sign up and sign in
The single email-first page that signs people in or creates their account, and Continue with Google.
Signing in and signing up happen on the same page. You type your email first, and the page works out the rest.
How it works
Continue with Google
Instead of a password, people can press Continue with Google. Google confirms who they are, and KarmaCircle signs them in, or creates their account if it is their first time. KarmaCircle never sees the Google password.
Good to know
- Passwords need at least 8 characters, with a number, a lowercase and an uppercase letter.
- Names use letters and single spaces only.
- One account per email. Signing up again with the same email is refused.
- Account type is set once. A returning person keeps their type whatever they pick on the first step.
- After signing in, people go back to the page they came from.
/auth/signinand/auth/signupopen the same page.GET /auth/check-emaildecides the next step; thenPOST /auth/signinorPOST /auth/signup.- An organization sign-up creates the login and a draft
organizationsrow in one transaction. - Google:
GET /auth/googlethenGET /auth/google/callback, which finds or creates the account by email, sets theTokencookie and redirects; the web app then callsGET /auth/login/success. Google sign-ups get their organization row on first visit to setup or the dashboard. - Return paths are accepted only on this site and never to another
/authpage.
| Piece | Where |
|---|---|
| Page | Auth.tsx |
| Service | auth.service.ts |