Exemple #1
0
        public async Task AssociateAuthData()
        {
            string uuid        = Guid.NewGuid().ToString();
            LCUser currentUser = await LCUser.Login("hello", "world");

            Dictionary <string, object> authData = new Dictionary <string, object> {
                { "expires_in", 7200 },
                { "openid", uuid },
                { "access_token", uuid }
            };
            await currentUser.AssociateAuthData(authData, "weixin");

            TestContext.WriteLine(currentUser.AuthData);
            TestContext.WriteLine(currentUser.AuthData["weixin"]);
        }