[grid] fix Global Account auth snippets#566
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Greptile SummaryThis documentation-only PR updates the Global Account authentication reference in
Confidence Score: 5/5Documentation-only change with no runtime code; all updated descriptions and snippets are consistent with each other and with the detailed sections in the same file. The PR touches only an MDX documentation file. The rewritten EMAIL_OTP and OAUTH bullets match the existing detailed flow diagrams and curl examples further down the page. The Android and iOS platform encoding changes are correct: Android base64url-encodes the UTF-8 bytes for the JSON options string consumed by GetPublicKeyCredentialOption, and iOS uses Data(string.utf8) which is the standard Swift pattern for getting raw UTF-8 bytes. No files require special attention.
|
| Filename | Overview |
|---|---|
| mintlify/snippets/global-accounts/authentication.mdx | Documentation-only update: splits EMAIL_OTP/OAUTH summary bullets and adds explicit UTF-8 encoding steps to Android and iOS passkey snippets; changes are logically consistent with the detailed sections below. |
Sequence Diagram
sequenceDiagram
participant C as Client
participant IB as Integrator backend
participant G as Grid
participant E as Email / OIDC
note over C,G: EMAIL_OTP (updated flow)
C->>IB: POST /my-backend/otp/challenge
IB->>G: "POST /auth/credentials/{id}/challenge"
G->>E: deliver OTP email
G-->>IB: "200 { otpEncryptionTargetBundle }"
IB-->>C: "{ otpEncryptionTargetBundle }"
C->>C: generateClientKeyPair() (P-256 TEK)
C->>C: "HPKE-encrypt { otp_code, publicKey } to encryptedOtpBundle"
IB->>G: "POST /auth/credentials/{id}/verify { type: EMAIL_OTP, encryptedOtpBundle }"
G-->>IB: "202 { payloadToSign, requestId }"
C->>C: sign(payloadToSign, tekPrivateKey)
IB->>G: Same POST + Grid-Wallet-Signature + Request-Id
G-->>IB: 200 AuthSession (no encryptedSessionSigningKey)
note over C,G: OAUTH (one-shot flow)
C->>E: fresh OIDC token
E-->>C: id_token
IB->>G: "POST /auth/credentials/{id}/verify { type: OAUTH, oidcToken, clientPublicKey }"
G-->>IB: "200 AuthSession { encryptedSessionSigningKey }"
Reviews (4): Last reviewed commit: "[grid] fix Global Account auth snippets" | Re-trigger Greptile
bea498a to
167fdf7
Compare
9aa1eda to
2e284b5
Compare
167fdf7 to
c14ff52
Compare
2e284b5 to
7da0598
Compare
bf8ca05 to
2bf47ea
Compare
7da0598 to
460893f
Compare
460893f to
d409949
Compare
2bf47ea to
43b4727
Compare
The base branch was changed.
d409949 to
f856ba9
Compare
Merge activity
|

Summary
EMAIL_OTPdescribes the encrypted OTP + signed retry flow instead of the old one-shot verify flow.OAUTHinto its own summary bullet because it remains the one-shot verify flow withclientPublicKey.Validation
make buildat the stack tip