# RemiliaNET React login example

Install Bun. Register an approved public Login client with the exact callback
`http://localhost:5173/`. No client secret is used.

1. Run `bun install`.
2. Copy `.env.example` to `.env.local` and set your public client ID.
3. Run `bun run dev` and open the printed URL.
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.
