Passkey Flex iOS SDK Core functions

Passkey.authenticate()

Parameters

PropertyData TypeDescription
transactionIdString?

Retrieve from Passkey Flex API. Learn more here.

Returns

String

With the transaction ID that you retrieved from the Passkey Flex API using a Passkey Flex backend SDK, authenticate the user. Returns a nonces.

Example

let nonce = try await passageFlex.passkey.authenticate(with: transactionId)

Passkey.register()

Parameters

PropertyData TypeDescription
transactionIdString

Retrieve from Passkey Flex API.

Learn more here
optionsPasskeyCreationOptions

(Optional) The type of authentication that will be used in this WebAuthN flow request. Defaults to platform. Use cross-platform for physical security key registration.

Returns

String

Register the user using the transaction ID you retrieved from the Passkey Flex API using a Passkey Flex backend SDK. Returns a nonce. You can use the nonce in a backend SDK to verify that Passage has registered the user successfully.

Example

let nonce = try await passageFlex.passkey.register(with: transactionId)