One Logo Pool Ball
AuthenticationServices · IOS API REFERENCE

ASCredentialImportManager

class · iOS 26.0+ · SDK 27.1

class ASCredentialImportManager

Members (2)

method · iOS 26.0+

importCredentials

TypeScript
importCredentials(token: string): Promise<ASExportedCredentialData>
Swift declaration
func importCredentials(token: UUID) async throws -> ASExportedCredentialData

When your app is selected as the importing app, it will be launched using an NSUserActivity of type ASCredentialExchangeActivity. You need to handle this in your delegate for AppKit/UIKit or the onContinueUserActivity modifier for SwiftUI. In order to support this, you will need to declare the NSUserActivityTypes array in your Info.plist and add the item ASCredentialExchangeActivity to the array. Please refer to the documentation on NSUserActivity for details: https://developer.apple.com/documentation/foundation/nsuseractivity The NSUserActivity you receive will have a single UUID object in its `userInfo` field with the key ASCredentialImportToken. Pass this object to this function to import the exported credentials.

init · iOS 26.0+

init

TypeScript
static init(): ASCredentialImportManager
Swift declaration
init()

Skipped declarations

No declarations were skipped in this snapshot.

All AuthenticationServices types →