{"section":"tutorials","requestedLocale":"en","requestedSlug":"configuring-login-with-facebook-and-google","locale":"en","slug":"configuring-login-with-facebook-and-google","path":"docs/en/tutorials/authentication/authentication-basics/configuring-login-with-facebook-and-google.md","branch":"main","content":"On VTEX, it is not necessary to create an account or log in to make a purchase. However, if customers want to change the information provided during their first purchase, they must validate their email address.\n\n1. [Obtain credentials from providers](#obtaining-credentials-from-providers)\n2. [Configure login with providers](#configuring-login-with-providers)\n3. [Validate the configuration](#validating-the-configuration)\n\n## Obtaining credentials from providers\n\nBefore setting up our Google and Facebook login integrations, you need to create OAuth 2.0 credentials (the protocol used for integration) in these services. To do this, follow the instructions in the articles below:\n\n- [Facebook](/en/docs/tutorials/adding-a-client-id-and-a-client-secret-to-log-in-with-facebook)\n- [Google](/en/tutorial/registering-a-client-id-and-a-client-secret-for-login-with-google)\n\n## Configuring login with providers\n\nAfter completing the configuration on Facebook and/or Google, you must configure the login option for the desired provider in the VTEX Admin. In both cases, you will need the `Client ID` and `Client Secret` from your providers.\n\n1. In the top bar of the VTEX Admin, click your **profile avatar**, indicated by the initial letter of your email address.\n2. Click **Account settings > Authentication**.\n\n  You will be redirected to the **Webstore** tab of the **Authentication** page, which lists the login methods available in your store.\n\n  ![List Authentication](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/authentication/authentication-basics/configuring-login-with-facebook-and-google_1.png)\n3. In the row of the desired login provider, click `Configure`.\n4. Complete the form with the `Client ID` and `Client Secret` from the [previous step](#obtaining-credentials-from-providers) and click `Save`.\n\n  ![Facebook OAuth EN](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/authentication/authentication-basics/configuring-login-with-facebook-and-google_2.PNG)\n6. On the **Authentication** page, enable the provider by clicking the toggle switch.\n\n  ![List Authentication Switch On Highlight](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/authentication/authentication-basics/configuring-login-with-facebook-and-google_3.png)\n\n## Validating the configuration\n\nAfter the configuration in the VTEX Admin, we recommend testing the login with the chosen provider through the end URL your users will access to visit your store. When trying to log in, the options for active providers will be displayed."}