---
title: "presentRegistrationViewController(completion:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/asauthorizationproviderextensionloginmanager/presentregistrationviewcontroller(completion:)"
---

# presentRegistrationViewController(completion:)

Requests platform single sign-on to show the extension’s view controller to the user.

## Declaration

```swift
func presentRegistrationViewController(completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func presentRegistrationViewController() async throws
```

## Parameters

- `completion`: A completion handler that the method uses to indicate whether the view controller presents successfully, and the specific error if it doesn’t.

## Mentioned in

Registering devices and users

## Discussion

Discussion This is only valid during registration. If the system can’t show the controller, the completion returns an error.

## See Also

### Performing registration

- [loginUserName](authenticationservices/asauthorizationproviderextensionloginmanager/loginusername.md)
- [registrationToken](authenticationservices/asauthorizationproviderextensionloginmanager/registrationtoken.md)
- [saveCertificate(_:keyType:)](authenticationservices/asauthorizationproviderextensionloginmanager/savecertificate(_:keytype:).md)
- [saveLoginConfiguration(_:)](authenticationservices/asauthorizationproviderextensionloginmanager/saveloginconfiguration(_:).md)
