We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e28100 commit 75b6cc2Copy full SHA for 75b6cc2
code_samples/authorization/get_decision.mdx
@@ -260,7 +260,7 @@ async function main() {
260
261
response.decisionResponses.forEach(decision => {
262
console.log('Decision:', decision.decision);
263
- if (decision.decision === 'DECISION_PERMIT' && decision.obligations?.length > 0) {
+ if (decision.decision === DecisionResponse_Decision.PERMIT && decision.obligations?.length > 0) {
264
console.log('Obligations:', decision.obligations);
265
}
266
});
0 commit comments