Add support for signing up with passkey [SDK-4974]#942
Merged
Conversation
…t into feature/passkeys-signup
Widcket
commented
Apr 29, 2025
| - [Authentication API Endpoint](https://auth0.com/docs/api/authentication#refresh-token) | ||
| - [Refresh Tokens](https://auth0.com/docs/secure/tokens/refresh-tokens) | ||
| */ | ||
| func ssoExchange(withRefreshToken: String) -> Request<SSOCredentials, AuthenticationError> |
Contributor
Author
Contributor
Author
There was a problem hiding this comment.
refreshToken is already the internal parameter in the actual implementing type.
Widcket
commented
Apr 29, 2025
| /// - Parameters: | ||
| /// - parameters: Additional parameters to use. | ||
| /// - headers: Additional headers to use. | ||
| /// - callback: Callback that receives a `Result` containing either the renewed user's credentials or an error. |
Contributor
Author
There was a problem hiding this comment.
The async/await wrapper has no callback.
Widcket
commented
Apr 29, 2025
| telemetry: self.telemetry) | ||
| } | ||
|
|
||
| #if !os(tvOS) && !os(watchOS) |
Contributor
Author
There was a problem hiding this comment.
This is the implementation of the login method.
Widcket
commented
Apr 29, 2025
| logger: self.logger, | ||
| telemetry: self.telemetry) | ||
| } | ||
|
|
Contributor
Author
There was a problem hiding this comment.
This is the implementation of the request challenge method.
pmathew92
approved these changes
Apr 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

📋 Changes
This PR adds two new methods to the Authentication API client:
passkeySignupChallenge(email:phoneNumber:username:name:connection:): Requests a challenge for registering a new user with a passkey. This is the first part of the passkey signup flow.login(signupPasskey:signupChallenge:connection:audience:scope:): Logs a user in using a signup passkey credential and the signup challenge. This is the last part of the passkey signup flow.📎 References
🎯 Testing
Unit tests were added, and the feature was manually tested e2e with a iPhone simulator running iOS 18.4, using Xcode 16.3 (16E140).