Skip to content

feat: auth examples cont#1527

Closed
andy-knock wants to merge 2 commits into
graphite-base/1527from
auth-2
Closed

feat: auth examples cont#1527
andy-knock wants to merge 2 commits into
graphite-base/1527from
auth-2

Conversation

@andy-knock

@andy-knock andy-knock commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #1526. Extends public-key auth guidance to adjacent docs that were still missing client-side context or used inconsistent env var names.

  • Per-tenant preferences. Adds a callout and client-side get example for building per-tenant preference UIs with a public API key and signed user token. Clarifies that tenant-scoped reads use user.getPreferences({ preferenceSet }) rather than preferences.get(), which returns the default set only. Server-side Node examples are labeled as backend-only.
  • Preference conditions. Notes that setting preferences (including conditions) is a public-key endpoint callable from the application.
  • Setting channel data. Notes that user channel data is a public-key endpoint and links to client SDK push registration docs.
  • Flutter quick start. Renames KNOCK_API_KEY to KNOCK_PUBLIC_API_KEY to match other in-app SDK docs.

@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Jul 8, 2026 10:54pm

Request Review

andy-knock commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Per-tenant client examples now use the two-argument authenticate() form
and clarify when to use user.getPreferences with a preference set id.
@andy-knock andy-knock changed the base branch from preference-api-auth to graphite-base/1527 July 8, 2026 22:58
@andy-knock andy-knock closed this Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant