Page Contents

Home > @loopback/authorization > AuthorizationOptions > precedence

AuthorizationOptions.precedence property

Controls if Allow/Deny vote takes precedence and override other votes. If not set, default to AuthorizationDecision.DENY.

Once a vote matches the precedence, it becomes the final decision. The rest of votes will be skipped.

Signature:

precedence?: AuthorizationDecision.DENY | AuthorizationDecision.ALLOW;