@hearth-auth/sdk 3.5.13 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -186,7 +186,7 @@ if (await hearth.inGroup("engineering")) {
186
186
  Resolves `true` iff the token verifies and its `oid` claim equals the given org ID.
187
187
 
188
188
  ```typescript
189
- if (await hearth.inOrg("org_acme")) {
189
+ if (await hearth.inOrg("6f1d0c1e-3b9a-4c2e-9d7f-1a2b3c4d5e6f") /* the org's id */) {
190
190
  renderAcmeContent();
191
191
  }
192
192
  ```
@@ -239,7 +239,7 @@ function NavBar() {
239
239
  const canEdit = useHasPermission("docs.write");
240
240
  const isAdmin = useHasRole("admin");
241
241
  const inEng = useInGroup("engineering");
242
- const isAcme = useInOrg("org_acme");
242
+ const isAcme = useInOrg("6f1d0c1e-3b9a-4c2e-9d7f-1a2b3c4d5e6f");
243
243
 
244
244
  return (
245
245
  <nav>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearth-auth/sdk",
3
- "version": "3.5.13",
3
+ "version": "4.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/hearth-auth/hearth.git",