People get into Laneshot in four ways:
- Sign-up: anyone can create an account at
/sign-up, then create an organization or join one that invited them. Turn this off withDISABLE_SIGNUP=true. - Invitations: an admin or project admin sends a link. See Team and invitations.
- Google: optionally restricted to one Workspace domain.
- GitHub: any GitHub account with a verified email.
Sign-up and email confirmation
- On the sign-in page, select Create an account, then enter a name, an email, and a password of at least 10 characters.
- Laneshot emails a confirmation link, valid for one hour. Opening it signs the person in.
- They land on Set up your organization, where they join an organization that invited their address, or create their own with a name and an address such as
laneshot.acme.com/acme.
Confirmation is required when email is set up (see Email). Without an email provider, confirmation emails can't reach anyone, so accounts work right away instead. Set REQUIRE_EMAIL_VERIFICATION to true or false to choose yourself.
Someone who never confirmed can sign in again later: Laneshot sends a fresh link.
Turn sign-up off
Set DISABLE_SIGNUP=true and restart. The Create an account link disappears, /sign-up answers 404, new Google accounts can't be created unless GOOGLE_ALLOWED_DOMAIN is set, and new GitHub accounts can't be created. Invitations keep working, and only platform admins can create organizations.
Forgotten passwords
Forgot password? on the sign-in page emails a reset link, valid for one hour. Setting a new password signs the account out everywhere. The link only appears when email can be delivered.
Password accounts
The usual way to add someone is an invitation: from Team in the sidebar, select Invite people. With email set up, Laneshot sends the link; you can also copy it. They choose their own name and password, and join the projects you picked. See Team and invitations.
Owners and admins can also set a password themselves:
- On Team, select Create account.
- Enter the person's Name, Email, and a Temporary password of at least 10 characters.
- Choose a Role: Member, Guest, Admin to let them manage people, projects, and settings, or Owner if you're an owner. The dialog explains each one.
- Share the temporary password through a channel you trust. The person changes it in Account settings, under Password.
Then add them to projects from each project's Settings, Members tab. See Members and roles.
Passwords are hashed by Better Auth before they're stored. Repeated sign-in and sign-up attempts from the same client are rate limited. The counters are kept in the database, so they hold across several Laneshot instances.
Google sign-in
With Google sign-in, people from your Workspace use their Google account, and accounts are created on their first sign-in.
Set it up
- In the Google Cloud console, create an OAuth client ID of type Web application.
- Add this Authorized redirect URI:
<APP_URL>/api/auth/callback/google, for examplehttps://laneshot.acme.com/api/auth/callback/google. - Set the variables on the server, then restart:
GOOGLE_CLIENT_ID=1234567890-abc.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=GOCSPX-…
GOOGLE_ALLOWED_DOMAIN=acme.com
The Continue with Google option appears once the client ID and secret are set.
- With
GOOGLE_ALLOWED_DOMAIN: only that Workspace's accounts get in, and their accounts are created on first sign-in. - Without it: any Google account can sign in, like a public SaaS. New accounts are only created while sign-up is on.
How the domain is enforced
Laneshot asks Google to show only accounts of the allowed domain, then checks the verified hd claim Google returns. An account whose claim doesn't match is refused, even if someone edits the sign-in request. Personal Gmail accounts have no hd claim, so they're refused too.
People who sign in with Google for the first time belong to no organization yet. An organization admin invites them, then adds them to projects or changes their role from Team.
Combine with password accounts
If someone created a password account for leo@acme.com, Léo can also sign in with Google: the accounts are linked because Google verified the same email. Both methods then open the same account.
GitHub sign-in
With GitHub sign-in, people use their GitHub account. It's separate from Connect GitHub, which links repositories and needs broader access: sign-in only reads the profile and email addresses.
Set it up
- On GitHub, open Settings > Developer settings > OAuth Apps > New OAuth App, under your organization's settings or your own.
- Fill in:
- Homepage URL: your
APP_URL, for examplehttps://laneshot.acme.com. - Authorization callback URL:
<APP_URL>/api/auth/callback/github, for examplehttps://laneshot.acme.com/api/auth/callback/github.
- Homepage URL: your
- Register the app, then select Generate a new client secret.
- Set the variables on the server, then restart:
GITHUB_SIGNIN_CLIENT_ID=Ov23li…
GITHUB_SIGNIN_CLIENT_SECRET=…
Continue with GitHub then appears on the sign-in and sign-up pages. Laneshot asks for the read:user and user:email scopes only.
Use a different OAuth App than the one in GITHUB_OAUTH_CLIENT_ID: GitHub allows one callback URL per app, and the repository connection has its own.
Which email is used
Laneshot uses the account's primary email when GitHub has verified it, otherwise another verified one. GitHub's private @users.noreply.github.com addresses are skipped, since they can't receive email. Someone without a verified address is sent back to the sign-in page with an explanation, and can add and verify one in GitHub's Settings > Emails.
Combine with other accounts
GitHub joins an existing Laneshot account only when both sides have verified the same email. Otherwise the person sees "An account with this email already exists" and signs in with their password or Google instead. New accounts are only created while sign-up is on.
Deactivate someone
On Team, select Remove from organization. They lose access to the organization right away, and their API tokens for it stop working, which disconnects their browser extension and MCP clients. Their cards, comments, and captures stay.
You can't remove yourself or change your own role, so an organization always keeps at least the admin making the change.
Sessions and tokens
| Credential | Used by | How it's stored |
|---|---|---|
| Session cookie | The web app | Signed with BETTER_AUTH_SECRET. Changing the secret signs everyone out. |
API token (lsh_…) |
The browser extension, the CLI, and MCP clients | SHA-256 hash only. Shown once when created. |
People manage their tokens in Account settings, under Browsers and API tokens, where they can see when each was last used and revoke it.
Troubleshooting
| Symptom | What to check |
|---|---|
| No Continue with Google option | GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET must be set. Restart after setting them. |
| No Continue with GitHub option | GITHUB_SIGNIN_CLIENT_ID and GITHUB_SIGNIN_CLIENT_SECRET must be set. Restart after setting them. |
| GitHub says "The redirect_uri is not associated with this application" | The OAuth App's callback URL must be exactly <APP_URL>/api/auth/callback/github. |
| No confirmation email arrives | Check Email. Without Resend, emails go to the server log only. |
| Google answers "redirect_uri_mismatch" | The redirect URI in Google Cloud must be exactly <APP_URL>/api/auth/callback/google, with the same scheme and host as APP_URL. |
| A colleague is refused after choosing their Google account | Their account isn't in GOOGLE_ALLOWED_DOMAIN, or it's a personal account. |
| "This account has been deactivated." | An admin deactivated the account. Ask them to reactivate it. |