feat: initial policy system and version (#29)

Resolves #22 #24 and #26
This commit is contained in:
Morten Olsen
2024-01-14 09:45:42 +01:00
committed by GitHub
parent c7ca97f041
commit eeaad68f6e
4 changed files with 18 additions and 2 deletions

View File

@@ -18,7 +18,11 @@ start.action(async () => {
const createToken = new Command('create-token');
createToken.action(async () => {
const runtime = await Runtime.create();
const token = await runtime.auth.createToken({});
const token = await runtime.auth.createToken({
policy: {
'*:*': ['*'],
},
});
console.log(token);
});