Created
January 17, 2024 21:02
-
-
Save francium-lupe/81dab1669a7485fd0473216ebddb663f to your computer and use it in GitHub Desktop.
(ReBAC) in Node.js 8
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
const authorized = await oso.authorize( | |
{ type: 'User', id: 'Peter' }, | |
'edit', | |
{ type: 'Issue', id: 'tps-reports-99' } | |
); | |
console.log(authorized); // false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment