docs: Habr link + "Verifying on your backend" section + hardened minting snippet - #16
Merged
Merged
Conversation
Add the Russian-language Habr tutorial to the Guides & articles section. RU README leads with Habr (native-language), EN/UZ append it after Medium.
Dedicated server-side verification guide covering the #1 integration mistake (trusting the client result): redeem the code with an r.ok check, judge comparison_value against your own threshold, bind the returned identity, the Secondary Request Flow (reuid), and crash recovery. Closes the open backend-verify docs item. Keeps the three language READMEs at line parity (470 lines each).
Route all three backend fetches (access-token, session, data) through a json() helper that throws on non-2xx, so a failed mint or redeem can never be silently parsed as a valid session or result. Closes the last open backend-verify item. 3-language line parity preserved (476 each).
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Docs-only changes (no code, no version bump). Three atomic commits; all three language READMEs (EN/RU/UZ) kept at exact line parity (476 lines each). CI native jobs are skipped via the docs-only path.
What & why
1. Link the Habr RU tutorial (
ee339ab)Adds the newly-published Russian tutorial (habr.com/ru/articles/1062676) to Guides & articles. The RU README now leads with Habr (native-language); EN/UZ append it after the Medium guide. Previously the RU README pointed Russian readers at the English Medium post — this fixes that mismatch.
2. New "Verifying on your backend" section (
da39781)A dedicated section on the single most common integration mistake — trusting the client
result.code. Covers:if (!res.ok) throwcheckcomparison_valueagainst your own threshold (framed as a risk decision — no invented magic number)reuidEvery field and endpoint used (
comparison_value,data.profile,reuid, both GET routes) is already established elsewhere in the README — nothing new invented.3. Harden the minting snippet (
8f6813e)Routes all three backend fetches (access-token, session, data) through a small
json()helper that throws on non-2xx, so a failed mint or redeem can never be silently parsed as a valid session/result. Replaces the bare.then(r => r.json())calls.Notes