---
title: authorizationCode
framework: authenticationservices
role: symbol
role_heading: Instance Property
path: authenticationservices/asauthorizationappleidcredential/authorizationcode
---

# authorizationCode

A token that the app uses to interact with the server.

## Declaration

```swift
var authorizationCode: Data? { get }
```

## Discussion

Discussion Your app uses this short-lived token as proof that it has authorization to interact with the server. The system encodes the object as a string using NSUTF8StringEncoding.

## See Also

### Identifying a User

- [identityToken](authenticationservices/asauthorizationappleidcredential/identitytoken.md)
- [state](authenticationservices/asauthorizationappleidcredential/state.md)
- [user](authenticationservices/asauthorizationappleidcredential/user.md)
