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

@valapi/auth still active? #10

Closed
canparam opened this issue Oct 1, 2024 · 2 comments
Closed

@valapi/auth still active? #10

canparam opened this issue Oct 1, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@canparam
Copy link

canparam commented Oct 1, 2024

Description

I am using valapi/auth package but when I login I get an error 
data: {
      type: 'auth',
      auth: { auth_method: 'riot_identity' },
      captcha: {
        type: 'hcaptcha',
        hcaptcha: {
          key: '019f1553-3845-481c-a6f5-5a60ccf6d830',
          data: 'UC/qFF5YLXD2xBZptoJENzTs7Nclm1fjmlgbSLO/kD0z4jyNisI1/QBPBJUzU+vugujvFh7Bbmbhp2vYHXNe5DJvWgBMwIsy9dtVkbLhZ+nfZT+rcC0tR20zbSS/'
        }
      },
      suuid: 'da117c30-3d89-4f9c-a7c6-51e18c56062d',
      cluster: 'an1',
      country: 'vnm',
      timestamp: '1727803847486',
      platform: 'windows',
      error: 'auth_failure'
    }

Code

import { Auth } from "@valapi/auth";
import axios from "axios";
const auth = new Auth();

const data = await auth.captcha();

console.log(data);
capsolver(data.rqdata).then(async  token => {
    console.log(token)
    if(token != undefined){
        await auth.login({
            username: "dm",
            password: "dm@11",
            captcha: token
        });
    }
});

Error

No response

Platform

No response

Node.js Version

No response

@valapi Version

No response

@canparam canparam added the bug Something isn't working label Oct 1, 2024
@KTNG-3
Copy link
Member

KTNG-3 commented Oct 2, 2024

Hi, this project is discontinued or some long pause

all code but not valapi/auth are likely work fine
you must force user to give you thier accout cookie

const a = new Auth();
a.cookie = yourCookieJar;
await a.reauthorize() 

**i didnt try this code yet
cookiejar => https://github.com/bmeck/node-cookiejar

@canparam
Copy link
Author

canparam commented Oct 2, 2024

Hi, this project is discontinued or some long pause

all code but not valapi/auth are likely work fine you must force user to give you thier accout cookie

const a = new Auth();
a.cookie = yourCookieJar;
await a.reauthorize() 

**i didnt try this code yet cookiejar => https://github.com/bmeck/node-cookiejar

thank you

@KTNG-3 KTNG-3 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 3, 2024
@KTNG-3 KTNG-3 pinned this issue Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants