| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/AuthenticationHelper.php.tar |
plugins/wordpress-seo/vendor_prefixed/wordproof/wordpress-sdk/app/Helpers/AuthenticationHelper.php 0000644 00000001166 15114652355 0040072 0 ustar 00 home/xbodynamge/crosstraining/wp-content <?php
namespace YoastSEO_Vendor\WordProof\SDK\Helpers;
class AuthenticationHelper
{
/**
* Removes all the options set by WordProof.
*
* @return void
*/
public static function logout()
{
\YoastSEO_Vendor\WordProof\SDK\Helpers\OptionsHelper::resetAuthentication();
}
/**
* Returns if the user is authenticated.
*
* @return bool If the user is authenticated.
*/
public static function isAuthenticated()
{
$options = \YoastSEO_Vendor\WordProof\SDK\Helpers\OptionsHelper::all();
return $options->access_token && $options->source_id;
}
}