@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.
- package/README.md +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("
|
|
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("
|
|
242
|
+
const isAcme = useInOrg("6f1d0c1e-3b9a-4c2e-9d7f-1a2b3c4d5e6f");
|
|
243
243
|
|
|
244
244
|
return (
|
|
245
245
|
<nav>
|