Repository navigation
feat(ait): resolve game identity from Toss user hash - #37
Conversation
|
Ready for review. The AIT identity bridge now uses the official game user hash and keeps the fixed player id behind the explicit |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
1 similar comment
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
✅ Action performedReview finished.
|
|
Important Review skippedNo new commits to review since the last review. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe AIT target now resolves player identity through ChangesAIT game identity flow
Possibly related PRs
Sequence Diagram(s)sequenceDiagram
participant PlatformGateway
participant AITBridge
participant IdentityResolver
participant AppsInTossSDK
PlatformGateway->>AITBridge: identity.getPlayer
AITBridge->>IdentityResolver: resolveAitGameIdentity
IdentityResolver->>AppsInTossSDK: getUserKeyForGame
AppsInTossSDK-->>IdentityResolver: HASH or failure result
IdentityResolver-->>AITBridge: player identity or structured error
AITBridge-->>PlatformGateway: identity response
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
getUserKeyForGame()hashdev:plainmock environmentWhy
The AIT wrapper previously returned
ait-local-playerfrom its production bridge. That could merge players across sessions and make backend save, leaderboard, and ledger identity incorrect. The wrapper now uses the game-specific SDK hash while keeping local browser development deterministic through an explicit mock provider.Validation
pnpm --dir apps/target-ait testpnpm --dir apps/target-ait checkpnpm build:aitpnpm smoke:target aitpnpm checkpnpm testocr review --audience agent(no actionable issues)Notes
This changes the private AIT target wrapper only, so no Sampo changeset is required. The official API requires a game mini-app and Toss app 5.232.0 or newer; sandbox/QR verification remains part of release QA.
@codex review
@coderabbitai review
Summary by CodeRabbit
New Features
Documentation
Tests