-
Notifications
You must be signed in to change notification settings - Fork 23
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
Tells me to sign in again after getting cache #106
Comments
Can you please share the code you are using |
const client = new Authflow(
|
Why are you creating an authflow before createClient? Unless you're doing it for your own needs, creating an Authflow is handled within createClient so that could be why you're having to sign in twice. Once for your own authflow and another for the authflow within createClient. |
The user links their account, and the create client is in my util file, it’s made for realm owners to link their account, and then use /connect to connect their linked account to the chosen realm. But this won’t work since I have to sign in again. The link command is suppose to store the users cache and use it to login to the realm. |
If the first authflow is your link then you need to make sure the directory match so |
When I link all the cache is correct but when it tells me to sign in again it remakes 2 cache files with different names and the directory’s are good, too. |
Yes that's why you need to match the username identifiers in both the authflow and the createClient as explained they are used to generate a hash for the file names. |
I understand now, will undefined work if I put it in the create client? |
In theory yes if each user has their own directory but I'd define a username to be consistent so you can easily identify a user's cached files. You can use the userid that's also being used to define the directory |
Yes, each user has there own folder created with their discord id. |
Ok just use that as the username param then for both authflow and createClient |
Omg tysm! Idk why I never tried that, I was thinking about it lol 😭 |
Versions
issue
When I use flow to sign in to my account, I have to login once more before it can join a realm. This is an issue because It’s NOT suppose to do that, so I can’t have people linking their main account to a bot for realms anti cheat. I don’t know how to explain more but it would be nice if the TODO: part worked.
Additional context
The caching doesn’t work, and it’s quite annoying. I’ve tried everything and I still cannot get it to read the cached tokens.
The text was updated successfully, but these errors were encountered: