Passage Passkey Flex docs are in beta. Passkey Complete docs can be found at docs.passage.id.

Core functions

Passkey.authenticate()

Parameters

PropertyData TypeDescription
transactionIdString?Retrieve from Passage Flex API. Learn more here.

Returns

String

Authenticate the user using the transaction ID you retrieved from the Passage Flex API using a Passage Flex backend SDK. Returns a nonce.

Example

let nonce = try await PassageFlex.Passkey.authenticate(with: transactionId)

Passkey.register()

Parameters

PropertyData TypeDescription
transactionIdStringRetrieve from Passage Flex API. Learn more here

Returns

String

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

Example

let nonce = try await PassageFlex.Passkey.register(with: transactionId)