---
lang: en
title: 'API docs: authorization.authorizer'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.authorization.authorizer.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/authorization](./authorization.md) &gt; [Authorizer](./authorization.authorizer.md)

## Authorizer type

A function to decide if access to the target should be allowed or denied

<b>Signature:</b>

```typescript
export declare type Authorizer<T extends AuthorizationMetadata = AuthorizationMetadata> = 
(context: AuthorizationContext, metadata: T) => Promise<AuthorizationDecision>;
```

