Create Apollo Link for Captcha handling
Compare changes
Create Apollo Link for Captcha handling
This implementation of an Apollo Link is similar to our Axios Captcha interceptor. The Link checks whether a top-level error in the GraphQL response hints towards the need of solving a captcha. If the captcha is solved correctly, the mutation will be send again, but this time the solution to the CAPTCHA is added to the HTTP headers.
Note: This MR just adds the Apollo Link to our code base without utilizing it. It will be utilized in: !56190 (merged)
If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
@gitlab-com/gl-security/appsec