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

AuthResult result is caught with 302th code #176

Open
vendeza opened this issue Feb 22, 2023 · 0 comments · May be fixed by #177
Open

AuthResult result is caught with 302th code #176

vendeza opened this issue Feb 22, 2023 · 0 comments · May be fixed by #177

Comments

@vendeza
Copy link

vendeza commented Feb 22, 2023

I try to get the key using voxImplant.requestOneTimeLoginKey(). Sometimes it end in try block, sometimes in catch block.
It seems 302 th code is not an error.

 try {
	const result = await voxImplant.requestOneTimeLoginKey(username);
	// result.key;
} catch (error) {
	if (error.code === 302) {
		// error.key  - usually I get the key only here
	}
}

@vendeza vendeza linked a pull request Feb 22, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant