You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should be printed only once. I am planning to make a query within authorizer. If I go ahead with current behaviour then I will see two database queries instead of a single one.
Is there a way to prevent this?
The text was updated successfully, but these errors were encountered:
I have created a basic authorizer by following offical documentation and loopback4-example-shopping.
I have found that every time I hits api end point, consol.log in cutom authorizer provider triggers twice.
Steps to reproduce
below is my code.
role-based-authorizer.service.ts
end point in user.controller
registering in application.ts
Current Behavior
sees console.log printed twice
Expected Behavior
Should be printed only once. I am planning to make a query within authorizer. If I go ahead with current behaviour then I will see two database queries instead of a single one.
Is there a way to prevent this?
The text was updated successfully, but these errors were encountered: