docs: fix auth account identifiers#476
Conversation
Use InternalAccount IDs in Global Accounts auth examples and remove stale email fields from EMAIL_OTP credential creation. Clarify that Grid resolves the OTP email from the customer email on file.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Greptile SummaryThis PR corrects stale account identifier prefixes and request body fields throughout the Global Accounts authentication documentation. All
Confidence Score: 3/5Safe to merge after fixing the missed The bulk of the renaming is correct and consistent, but one mintlify/snippets/global-accounts/authentication.mdx — specifically the
|
| Filename | Overview |
|---|---|
| mintlify/snippets/global-accounts/authentication.mdx | Updates EmbeddedWallet: → InternalAccount: across OAUTH and EMAIL_OTP examples, removes the email field from EMAIL_OTP request bodies, and updates sequence diagrams — but one EmbeddedWallet: occurrence remains inside the JSON-encoded payloadToSign string on line 588. |
Comments Outside Diff (1)
-
mintlify/snippets/global-accounts/authentication.mdx, line 588 (link)The
payloadToSignresponse example on this line still uses the oldEmbeddedWallet:account ID prefix. Every other account ID in this file was updated toInternalAccount:, but this one was missed — it sits inside the JSON-encoded string, making it easy to overlook. A developer following the docs will seeEmbeddedWallet:appear in the actual signed payload returned by Grid, which contradicts the corrected examples everywhere else in the file.Prompt To Fix With AI
This is a comment left during a code review. Path: mintlify/snippets/global-accounts/authentication.mdx Line: 588 Comment: The `payloadToSign` response example on this line still uses the old `EmbeddedWallet:` account ID prefix. Every other account ID in this file was updated to `InternalAccount:`, but this one was missed — it sits inside the JSON-encoded string, making it easy to overlook. A developer following the docs will see `EmbeddedWallet:` appear in the actual signed payload returned by Grid, which contradicts the corrected examples everywhere else in the file. How can I resolve this? If you propose a fix, please make it concise.
Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.
---
### Issue 1 of 1
mintlify/snippets/global-accounts/authentication.mdx:588
The `payloadToSign` response example on this line still uses the old `EmbeddedWallet:` account ID prefix. Every other account ID in this file was updated to `InternalAccount:`, but this one was missed — it sits inside the JSON-encoded string, making it easy to overlook. A developer following the docs will see `EmbeddedWallet:` appear in the actual signed payload returned by Grid, which contradicts the corrected examples everywhere else in the file.
```suggestion
"payloadToSign": "{\"requestId\":\"7c4a8d09-ca37-4e3e-9e0d-8c2b3e9a1f21\",\"type\":\"EMAIL_OTP\",\"accountId\":\"InternalAccount:019542f5-b3e7-1d02-0000-000000000002\",\"expiresAt\":\"2026-04-08T15:35:00Z\"}",
```
Reviews (1): Last reviewed commit: "docs: fix auth account identifiers" | Re-trigger Greptile

Summary
InternalAccount:<uuid>in Global Accounts auth credential examples.emailfields fromEMAIL_OTPcredential creation requests.Test Plan
git diff --check main...HEADrgscan for staleEmbeddedWallet:<id>, request-body email fields, and old signed-retry request IDs.