The GET /{{envID}}/rp/callback/{{providerType}}?code={{externalAuthCode}}&state={{externalProviderState}} endpoint gets the response from the external identity provider after the user authenticates.

The request specifies the name of the external identity provider in the {{providerType}} request parameter (for example, facebook or google). The code query parameter has as its value the external authentication code returned by the identity provider, which is exchanged for an access token. The state parameter identifies the external authentication state returned by the identity provider.