Skip to content

feat: add public memberwise initializers to passkey challenge types#1188

Merged
NandanPrabhu merged 4 commits into
masterfrom
feat/passkey-challenge-public-init
May 28, 2026
Merged

feat: add public memberwise initializers to passkey challenge types#1188
NandanPrabhu merged 4 commits into
masterfrom
feat/passkey-challenge-public-init

Conversation

@subhankarmaiti
Copy link
Copy Markdown
Contributor

@subhankarmaiti subhankarmaiti commented May 27, 2026

Summary

  • Add public init to PasskeyEnrollmentChallenge, PasskeySignupChallenge, and PasskeyLoginChallenge
  • These types previously relied on synthesized internal initializers, making them impossible to construct outside the module

Motivation

The React Native Auth0 SDK needs to reconstruct challenge objects on the native bridge side.

Without public initializers, consumers cannot create these structs directly, which blocks integration with wrappers and cross-platform SDKs that deserialize challenge data from JavaScript.

Testing

  • swift build passes
  • All existing tests continue to pass (swift test)
  • Used in react-native-auth0 iOS bridge to verify enrollment flow end-to-end

@subhankarmaiti subhankarmaiti requested a review from a team as a code owner May 27, 2026 18:57
NandanPrabhu
NandanPrabhu previously approved these changes May 28, 2026
Comment thread Auth0/MyAccount/AuthenticationMethods/PasskeyEnrollmentChallenge.swift Outdated
Comment thread Auth0/PasskeyLoginChallenge.swift Outdated
Comment thread Auth0/PasskeySignupChallenge.swift Outdated
@subhankarmaiti subhankarmaiti changed the title feat: Add public memberwise initializers to passkey challenge types feat: add public memberwise initializers to passkey challenge types May 28, 2026
@NandanPrabhu NandanPrabhu merged commit a3a7d5f into master May 28, 2026
16 of 18 checks passed
@NandanPrabhu NandanPrabhu deleted the feat/passkey-challenge-public-init branch May 28, 2026 10:22
@subhankarmaiti subhankarmaiti mentioned this pull request May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants