Skip to content

Session device names, no stale config cache in Docker, guides for app 1.6.0 - #3

Merged
elyess merged 1 commit into
mainfrom
feat/app-1.6-alignment
Nov 27, 2026
Merged

elyess merged 1 commit into
mainfrom
feat/app-1.6-alignment

Conversation

@elyess

@elyess elyess commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • POST /auth/login and POST /auth/register accept an optional device_name. It becomes the session name in GET /auth/sessions, and a token refresh keeps it. Old apps keep the name mobile-app.
  • Docker: a config cache in the build folder (kinlore-api/bootstrap/cache/config.php, ignored by git) was copied into the image, and the start script rebuilt it only for APP_ENV=production. An old cache could keep an old APP_URL through git pull and up -d --build. The file is no longer copied, every start removes an old cache first, and the server prints its public address at start.
  • openapi.yaml lists device_name, the session name, public_url_configured and the public_url health check.
  • App guides match app 1.6.0: Settings lists the servers, each server has its own screen, one way to invite, device names.

Checks

  • php artisan test: 243 passed, 1 skipped (new tests/Feature/Auth/DeviceNameTest.php).
  • npm run docs:build: passes.
  • Device names checked against a local server with the app on the iOS simulator.
  • The Docker image was not built locally: the entrypoint change has a syntax check only. The docker CI job is the test for it.

…uides match app 1.6.0

- POST /auth/login and /auth/register accept an optional device_name (up to 60 characters); it is the session name in GET /auth/sessions, and a token refresh keeps it
- Docker: bootstrap/cache/*.php is not copied into the image, every start removes an old config cache before the first artisan call, and the server prints its public address (with a warning for a placeholder APP_URL)
- openapi.yaml: device_name, the session name, public_url_configured on POST /v1/invitations, the public_url health check
- Docs: app guides rebuilt around servers (Settings root, the Server screen, one way to invite, device names); troubleshooting for an APP_URL that is right in a file but not used
- Tests: tests/Feature/Auth/DeviceNameTest.php
@elyess
elyess merged commit b2719c2 into main Nov 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant