Hybrid_Auth::storage PHP Method

storage() public static method

Users sessions are stored using HybridAuth storage system ( HybridAuth 2.0 handle PHP Session only) and can be accessed directly by Hybrid_Auth::storage()->get($key) to retrieves the data for the given key, or calling Hybrid_Auth::storage()->set($key, $value) to store the key => $value set.
public static storage ( ) : Hybrid_Storage
return Hybrid_Storage
    public static function storage()
    {
        return Hybrid_Auth::$store;
    }

Usage Example

 public static function getUser($token)
 {
     $config = \Config::get('hybridauth');
     $socialAuth = new \Hybrid_Auth($config);
     $socialAuth->storage()->set("hauth_session.facebook.is_logged_in", 1);
     $socialAuth->storage()->set("hauth_session.facebook.token.access_token", $token);
     return SocialLoginManager::getUser('facebook');
 }
All Usage Examples Of Hybrid_Auth::storage