Accounts
The two kinds of account and how staying signed in works.
Everyone on KarmaCircle has one login. It is either a personal account or an organization account, chosen at sign-up.
| Account | What it is for |
|---|---|
| Personal | Browse and join events, follow organizations, keep a small profile. |
| Organization | Everything a personal account does, plus a public organization page and hosting events. |
Staying signed in
Good to know
- Logging out signs you out on every device, not just this one. So does resetting your password.
- Your details are yours. Nobody else can read your account, and your password is stored in a form that cannot be read back.
- Not built yet: deleting an account, changing your email, and a change-password page.
Your data
What we collect
| Data | When | Required |
|---|---|---|
| Account type: personal or organization | Sign-up | Yes |
| Name | Sign-up, or from Google | Yes |
| Email address | Sign-up, or from Google | Yes |
| Password, stored as a one-way hash | Sign-up and password reset | Yes, unless you use Google |
| A username made from your email | Sign-up, automatically | Automatic |
| Short bio | Your profile | No |
| City, state, country, address and PIN code | Your profile | No |
| Sign-up date | Sign-up, automatically | Automatic |
From Google we take only your name and email address.
Why
- Account type decides what you can do: only organization accounts can host events.
- Name is what organizers and organizations see when you join or follow.
- Email is how you sign in, and where event and password emails go.
- Password proves it is you. Nobody, including KarmaCircle, can read it back.
- Username gives every account a unique name inside the system.
- Bio and location let you fill in a profile. They are never shown publicly.
What we do with it
- You can see and edit all of it. Nobody else can open your account.
- Organizers of events you join see your name and email. See Events.
- Organizations you follow see your name on their dashboard, not your email.
- The email service (Resend) receives your email address when an email is sent to you.
- Google is involved only if you choose Continue with Google.
- Kept for as long as the account exists. Deleting an account is not built yet.
- A password-reset link is stored only as a hash, and stops working after one hour.
How it moves
In this section
Sign up and sign in
One page, email first, or Continue with Google.
Password and profile
Forgotten passwords and editing your profile.
- Sessions are a JWT in an
httpOnlycookie namedToken, valid for 30 days. Logout and password reset end every session of the account. - On start-up the web app checks the remembered sign-in with
GET /user/profilein the background, so public pages show at once; only sign-in-only pages wait for it. A rejected session is cleared. - Accounts are rows in
userswithuser_typeofindividualororganization. Responses go throughuserService.sanitize()and only to the owner.
| Piece | Where |
|---|---|
| Auth routes | apps/api/src/modules/auth/ |
| Session check | SessionBootstrap.tsx |
| Table | users |