- The client calls `POST /auth`. The server responds with `{ auth_token: "AUTH_TOKEN" }`. This `auth_token` is different from the regular token - it is just used to authenticate the client.
- The application displays a message asking the user to Accept or Reject the access request.
- The clients calls `GET /auth/check?auth_token=AUTH_TOKEN` at regular intervals. Initially the server responds with `{ status: "waiting" }`, since we are waiting for the user to confirm or reject.
- Once the user accepts the request in the application, the server returns `{ status: "accepted", token: "API_TOKEN" }`.
- The client can now use this `API_TOKEN` to make requests.
- If the users rejects the request, the server returns `{ status: "rejected" }`, and the client can display an error message.