Sign-in and sharing
Vektor signs people in before requests reach your app – you never build a login.
Who can open an app
- A new app is visible only to you (and your organization’s admins).
- Share it on the app’s Access tab or with
vektor share <email> --app <name>. People get an email link and are in with one click. - In an organization, members can see its apps according to their role (admin, developer, viewer, or a custom role).
Who is signed in – in your code
Every request that reaches your app carries the signed-in person:
app.get('/', (req, res) => {
const email = req.headers['x-user-email']; // e.g. maria@acme.com
const role = req.headers['x-user-role']; // admin | developer | viewer | public
res.send(`Hello ${email}`);
});WebSockets carry the same headers. Never trust these headers on a port reachable without Vektor – inside Vektor nothing else can reach your app.
Public paths and custom domains
- Webhooks (Stripe, GitHub, Slack) and public forms need paths without sign-in: add
{"public": ["/webhooks/*"]}to vektor.json. They arrive withX-User-Role: public– verify signatures in your app. - Use your own domain with
vektor domains add <domain> --app <name>; HTTPS certificates are automatic.