Skip to main content
magicLinks.discovery.authenticate wraps the authenticate discovery magic link endpoint. Use this method to authenticate after sending a discovery email magic link. Upon successful authentication, this method returns an and a list of discovered . The user can then select an organization and exchange the intermediate session for a full session using the exchange intermediate session method.

Parameters

object
required

Response

string
The email address that was authenticated.
object[]
An array of discovered Organizations that the Member can authenticate into.
string
The intermediate session token that can be exchanged for a full session.
string
Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we may ask for this value to help identify a specific API call when helping you debug an issue.
number
The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors.