voximplant / react-native-voximplant

Voximplant mobile SDK for React Native (iOS/Android)
http://voximplant.com
205 stars 39 forks source link

AuthResult result is caught with 302th code #176

Open vendeza opened 1 year ago

vendeza commented 1 year ago

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