Skip to main content

Express

A Express service with sign-in routes and one protected route.

StarterDraftView source
This page is a draft. The code exists, and not all of it has been run for this page yet. The page says what was checked.
Works with
JavaScript / TypeScriptExpress

What you get​

  • lumoAuthMiddleware() with login, callback and logout routes.
  • A route behind requireAuth().
  • A .env file with your organization and client.

Create it​

Install the lumo CLI, then run:

lumo init --framework express

The command asks for your organization and the client ID, and writes the project and its .env file.

Settings​

VariableValue
LUMOAUTH_URLhttps://app.lumoauth.dev, or https://eu.app.lumoauth.dev for the EU region.
LUMOAUTH_ORG_IDYour organization, for example acme-corp.
LUMOAUTH_CLIENT_IDThe client ID of a confidential application.
LUMOAUTH_CLIENT_SECRETIts secret.

Next steps​

Where the code is today​

lumo init --framework express writes this project.