v26.4.27
v26.4.27
Session token exchange codes expire shortly after use and after one hour
A native app that signs in with a social provider exchanges the session_token_exchange_code and the code from the return_to
URL for a session token at GET /sessions/token-exchange. These codes now stop working five seconds after their first successful
exchange, and one hour after the login or registration flow was created. Within the five seconds, a repeated exchange, for example
after a double tap, returns the same session token. After that, the exchange returns 404 Not Found.
Use codes for passwordless login and MFA together
Two new settings choose whether codes are sent by email, by SMS, or both: selfservice.methods.code.passwordless_via for
passwordless login and registration, and selfservice.methods.code.mfa_via for MFA. Each accepts any, email, or sms. The
default, any, keeps the previous behavior.
passwordless_enabled and mfa_enabled can now both be true if one setting is email and the other is sms. For example,
users sign in with an email code, and identities with a phone number use an SMS code as the second factor. A configuration that
enables both with any other combination is still rejected.