---
title: GetTKTokenWatcher
framework: security
role: symbol
role_heading: Instance Property
path: security/authorizationcallbacks/gettktokenwatcher
---

# GetTKTokenWatcher

Constructs a token watcher.

## Declaration

```occ
int (*)(struct __OpaqueAuthorizationEngine *, const void **) GetTKTokenWatcher;
```

## Parameters

- `inEngine`: An opaque handle that’s passed to your plug-in when the authorization engine calls your doc://com.apple.security/documentation/Security/AuthorizationPluginInterface/MechanismCreate function.
- `outValue`: A pointer the function uses to return the doc://com.apple.documentation/documentation/CryptoTokenKit/TKTokenWatcher instance.

## Discussion

Discussion The caller owns the returned token watcher and is responsible for releasing it. important: This function is only available when the callback version is 3 or higher.
