# RemiliaNET React login example

Install Bun. Register an approved public Login client with the exact `https://`
callback of the page, such as `https://myapp.example/`. No client secret is
used. `http://localhost:5173/` is where the dev server opens, and it cannot be
the registered callback.

1. Run `bun install`.
2. Copy `.env.example` to `.env.local` and set your public client ID.
3. Run `bun run dev`. Open the registered https URL. The printed localhost URL
   cannot be the callback.
4. Log in, confirm your profile appears, then log out and confirm it disappears.

`bun run build` checks TypeScript and creates a production bundle. Register its
exact HTTPS base URL before deploying. Keep the trailing slash.

Login requires the real identity provider and an approved client. A local build
does not verify production login. The profile request reads the root `user`
object from `/api/v1/me`; it does not expect a `data` envelope.

See https://docs.remilia.net/guide/authentication and
https://docs.remilia.net/guide/operations for grants, browser origins and recovery.
