Skip to content
feega
star on github download

Apps behind a login

Log in to your app once in the preview and stay logged in.

Feega shows your app through a local preview address. Pages behind a login work like in your browser: log in once, inside the preview.

Use your app’s own login form in the preview. The session is kept:

  • after a reload or a change to your code;
  • in every preview of the same project, and in every project tab of the desktop app;
  • in the desktop app, across restarts.

Logging out from inside your app logs every preview out.

The preview forwards requests to your dev server and adapts only what a different address would break:

  • session cookies are kept for the preview address, with the same name, path and expiry;
  • redirects to your dev server stay in the preview;
  • forms posted from the preview pass your framework’s same-origin check.

Nothing changes outside local development: only your own dev server’s address is adapted.

Keep your provider’s allowed redirect URL as your app’s own address, for example http://localhost:3000/auth/callback. Do not add the preview address.

In the desktop app the return from the provider lands back in the preview by itself. In VS Code and npx feega the provider sends you back to your app’s own address, outside the preview: log in with a provider from the desktop app.