Skip to content

osmar2008/typescript-5.2-decorators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Permission system architecture POC

Simulating a barebones webserver, to highlight the architecture without nestjs additions

Check this line of code in src/index.ts:

const [ownAccess, organizationAccess, allAccess, noAccess] = users;

Each user has a diferent access level for creating/reading from /users

modify the user accessing the resource, changing it here:

runInContext(organizationAccess, () => {...})

Run the example with yarn ts-node-esm src/index.ts and check the results.

//TODO: add explanation and more examples.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published