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
}
}
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.