fix(kobo): proxy the /v1/auth/device endpoint (#511)

without this it's impossible to set up a kobo device since we won't have
a userkey yet
This commit is contained in:
James Ward
2026-04-22 17:27:35 -04:00
committed by Zach Yale
parent 3e988077e0
commit ba6eb4f64c
@@ -115,7 +115,11 @@ public class KoboController {
@Operation(summary = "Authenticate Kobo device", description = "Authenticate a Kobo device.")
@ApiResponse(responseCode = "200", description = "Device authenticated successfully")
@PostMapping("/v1/auth/device")
public ResponseEntity<KoboAuthentication> authenticateDevice(@Parameter(description = "Authentication request body") @RequestBody JsonNode body) {
public ResponseEntity<?> authenticateDevice(@Parameter(description = "Authentication request body") @RequestBody JsonNode body) {
if (isForwardingToKoboStore()) {
return koboServerProxy.proxyCurrentRequest(body, false);
}
return koboDeviceAuthService.authenticateDevice(body);
}