Skip to content

Commit f893338

Browse files
committed
fix: incorrect redirect checktoken
1 parent 8ae85ae commit f893338

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

docs/protocol/login-server.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ sequenceDiagram
2525
2626
Client->>Login: POST /player/growid/checktoken?valKey=xxx
2727
Note right of Client: refreshToken (base64)<br/>clientData (pipe-separated)
28+
Login->>Login: 307 Redirect to<br/>/player/growid/validate/checktoken
29+
Note over Login: Server validates token<br/>at the redirected endpoint
2830
Login->>Client: Success Response
2931
Note left of Login: token (updated)<br/>status: success<br/>accountAge
3032
@@ -270,6 +272,18 @@ Validates GrowID credentials and returns an authentication token.
270272

271273
**Endpoint:** `POST /player/growid/checktoken?valKey=...`
272274

275+
**Note:** This endpoint uses a 307 (Temporary Redirect) to redirect requests to `/player/growid/validate/checktoken`. The client first calls `/player/growid/checktoken`, which the server redirects to the validation endpoint. Without this redirect, the login page will not complete and will get stuck.
276+
277+
**Redirect Configuration:**
278+
```json
279+
redirects: {
280+
"/player/growid/checktoken": {
281+
status: 307,
282+
destination: "/player/growid/validate/checktoken"
283+
}
284+
}
285+
```
286+
273287
Validates the refresh token and returns an updated authentication token.
274288

275289
**Query Parameters:**

0 commit comments

Comments
 (0)