Type guard to check if an SDK response has a 302 status code.
302
The SDK response to check
true if the response is a redirect, false otherwise
true
false
const response = await someBridgeMethod();if (isRedirection(response)) { // response narrowed to status code `302` variant console.log('Redirecting...');} Copy
const response = await someBridgeMethod();if (isRedirection(response)) { // response narrowed to status code `302` variant console.log('Redirecting...');}
Type guard to check if an SDK response has a
302status code.