Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

Error on try to authenticate #8

Open
FabioZumbi12 opened this issue Aug 4, 2019 · 0 comments
Open

Error on try to authenticate #8

FabioZumbi12 opened this issue Aug 4, 2019 · 0 comments

Comments

@FabioZumbi12
Copy link

FabioZumbi12 commented Aug 4, 2019

I am trying to use this lib on my project but i am having this erro on authenticate:
image
(Error message: The path has an invalid format)

This is the code:

using MojangSharp.Endpoints;
using MojangSharp.Responses;
using System;
using System.Windows.Forms;

namespace AreaZ12_Launcher
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Button1_Click(object sender, EventArgs e)
        {
            AuthenticateResponse auth = new Authenticate(new Credentials() { Username = "fabio.fmagalhaes12@gmail.com", Password = "Aaaa1111" }).PerformRequestAsync().Result;
            if (auth.IsSuccess)
            {
                label1.Text = "Sucesso: " + auth.AccessToken;
            } else
            {
                label1.Text = "Erro: ";
            }
        }
    }
}

The password its an example!
I need to change something?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant