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

Can only provide discord token to automatically generate session.yaml #44

Open
xiongqiangcs opened this issue Jul 5, 2023 · 2 comments

Comments

@xiongqiangcs
Copy link

Use Discord Token Login to Avoid Entering Username and Password?

Similar to chrome extension discord token login
https://chrome.google.com/webstore/detail/discord-token-login/moncfdpjldlalmbimjjpbdenngeonnie

@igolaizola
Copy link
Owner

You can launch a custom javascript to login with the token.

Launch bulkai create-session command and when the login window appears open developer tools (F12) and paste this on the console:

function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
login('paste-your-token-here')

@xiongqiangcs
Copy link
Author

You can launch a custom javascript to login with the token.

Launch bulkai create-session command and when the login window appears open developer tools (F12) and paste this on the console:

function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
login('paste-your-token-here')

Can I execute the command bulkai create-session --token xxx to generate session.yaml without opening chrome? This allows to execute bulkai create-session --token xxx directly on linux/unix

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

2 participants