---
title: "init(identifier:type:)"
framework: authenticationservices
role: symbol
role_heading: Initializer
path: "authenticationservices/ascredentialserviceidentifier/init(identifier:type:)"
---

# init(identifier:type:)

Initializes a credential service identifier instance.

## Declaration

```swift
init(identifier: String, type: ASCredentialServiceIdentifier.IdentifierType)
```

## Parameters

- `identifier`: The string value for the service identifier.
- `type`: The type that the service identifier string represents.
