Which of the following is a property of the Global Object in Node.js?
- console
- globalThis
- module
- require
In Node.js, the global object is a global context object that contains various properties and methods available throughout the application. globalThis is a reference to the global object, which allows cross-environment compatibility. console, module, and require are not properties of the global object but are commonly used in Node.js for various purposes.
What is the primary difference between OAuth 1.0 and OAuth 2.0?
- OAuth 1.0 uses HMAC-SHA1 for signing requests, while OAuth 2.0 uses JWT.
- OAuth 1.0 requires client registration, while OAuth 2.0 does not.
- OAuth 1.0 uses two-legged authentication, while OAuth 2.0 uses three-legged authentication.
- OAuth 1.0 is a token-based system, while OAuth 2.0 is a protocol for token-based authentication.
The primary difference is that OAuth 1.0 requires client registration, while OAuth 2.0 does not. OAuth 2.0 introduced a more streamlined and flexible approach to authorization. The other options describe differences but not the primary distinction.