Created
January 17, 2024 22:38
-
-
Save francium-lupe/df419ffe371c3f5f38fa0b758cee4811 to your computer and use it in GitHub Desktop.
(ReBAC) in Node.js 14
This file contains 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
authorized = await oso.authorize( | |
{ type: 'User', id: 'Bill' }, | |
'edit', | |
{ type: 'Issue', id: 'tps-reports-99' } | |
); | |
console.log(authorized); // true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment