Skip to content

Instantly share code, notes, and snippets.

@meetawahab
Created August 17, 2020 06:30
Show Gist options
  • Save meetawahab/e463363e30614f30d415cd4c2dcda471 to your computer and use it in GitHub Desktop.
Save meetawahab/e463363e30614f30d415cd4c2dcda471 to your computer and use it in GitHub Desktop.
Integration for local server to login with Google using LoginPress - Social Login v1.4.0
<?php
/**
* You've to download `cacert.pem` file from here => https://d.pr/f/p89oI5 and place it into the plugins SDK folder.
* Path => wp-content/plugins/loginpres-social-login/sdk/
* After that, copy the following PHP snippet and place it into loginpress-social-check.php # 198 after the object of Google_Client();
* Helping Screenshot => https://d.pr/i/IzIRNZ
* File path => wp-content/plugins/loginpres-social-login/classes/loginpress-social-check.php
* @since LoginPress - Socila Login version 1.4.0 while Google SDK version 2.7.0 */
$gClient->setHttpClient(new \GuzzleHttp\Client(array(
'verify' => LOGINPRESS_SOCIAL_DIR_PATH . 'sdk/cacert.pem',
)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment