stytchauth / stytch-ios

MIT License
31 stars 5 forks source link

[SDK-1827] Conditionally use PKCE in magic links authenticate #261

Closed nidal-stytch closed 2 months ago

nidal-stytch commented 2 months ago

Linear Ticket: SDK-1827

Changes:

  1. b2b/magic_links/authenticate should use PKCE code challenge if link was created by login or create because the assumption is that its on the same device, but not use the PKCE code challenge if it was sent via the invite endpoint because that would be from a separate device.

Checklist: