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

Auth with specify path #17

Open
foxety0F opened this issue Aug 29, 2021 · 0 comments
Open

Auth with specify path #17

foxety0F opened this issue Aug 29, 2021 · 0 comments

Comments

@foxety0F
Copy link

Hello!

I try load session from another (not credentials.json) file, but when i create a WAClient via
WAClient client = new WAClient();
WAClient use default file "credentials.json" and after that constructor already set new auth :
public WABackendConnector() { this.auth = AuthCredentials.loadAuthCredentials(credentialsPath); }

After that i try set a new file
client.setCredentialsPath("wa-sessions/" + path);
But in WAClient in AuthCredentials auth i have a auth based on credentials.json

I think need on method
public void setCredentialsPath(String credentialsPath) { this.credentialsPath = credentialsPath; }

Reload auth

public void setCredentialsPath(String credentialsPath) { this.credentialsPath = credentialsPath; this.auth = AuthCredentials.loadAuthCredentials(credentialsPath); }

Thanks

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