Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All the time InvalidHash #13

Open
mistek131995 opened this issue Nov 22, 2023 · 0 comments
Open

All the time InvalidHash #13

mistek131995 opened this issue Nov 22, 2023 · 0 comments

Comments

@mistek131995
Copy link

mistek131995 commented Nov 22, 2023

Hi, I get an error all the time InvalidHash, What am I doing wrong?

I'm testing this on a local server, on port 80, and adding the domain to hosts.

var telegramBotToken = configuration["TelegramBotToken"];
var loginWidget = new LoginWidget(telegramBotToken);

var auth = loginWidget.CheckAuthorization(new SortedDictionary<string, string>()
    {
        {"id", query.id},
        {"first_name", query.first_name},
        {"username", query.username},
        {"photo_url", query.photo_url},
        {"auth_date", query.auth_date},
        {"hash", query.hash},
        {"last_name", query.last_name }
    });

Снимок экрана 2023-11-22 074715

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

No branches or pull requests

1 participant