Skip to main content

max / goingson

synckit-client 0.4.0: pass sentinel key in token exchange Internal app — bypasses billing via is_internal=TRUE. The "__internal__" literal is cosmetic for billing attribution. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Author: Max J. <87768334+MaxJMath@users.noreply.github.com> · 2026-05-22 00:22 UTC
Commit: a64799c56e4aa7ea09c6cc1805778378b10a6d39
Parent: 0daf7b3
1 file changed, +1 insertion, -1 deletion
@@ -202,7 +202,7 @@ pub async fn sync_complete_auth(
202 202 }.ok_or_else(|| ApiError::bad_request("Invalid or expired OAuth state token"))?;
203 203
204 204 let (user_id, app_id) = client
205 - .authenticate_with_code(&input.code, &flow.code_verifier, flow.port)
205 + .authenticate_with_code(&input.code, &flow.code_verifier, flow.port, "__internal__")
206 206 .await
207 207 .map_api_err("Token exchange failed", ApiError::external_service)?;
208 208