Complete the code to set the request to inherit authentication from the collection.
pm.request.auth = [1];To inherit authentication from the collection in Postman scripts, set pm.request.auth to { type: 'inherit' }.
Complete the code to check if the current request is inheriting auth from the collection.
if (pm.request.auth && pm.request.auth.type === [1]) { console.log('Inheriting auth'); }
The type property is 'inherit' when the request inherits authentication from the collection.
Fix the error in the code to correctly inherit auth from the collection.
pm.request.auth = [1]; // Incorrect: pm.request.auth = 'inherit';
The auth property must be an object with a type property set to 'inherit', not a string.
Fill both blanks to set the request to inherit auth and then verify it.
pm.request.auth = [1]; if (pm.request.auth.type === [2]) { console.log('Auth inherited'); }
Set auth to { type: 'inherit' } and check if pm.request.auth.type equals 'inherit'.
Fill all three blanks to set inheritance, check type, and log a message.
pm.request.auth = [1]; if (pm.request.auth.type === [2]) { console.log([3]); }
Set auth to inherit, check the type string, and log a success message.