Get requested URL with params

I’m doing an API request with some params.

Example:

import Axios from 'axios';

const generator = Axios.create({
    baseURL: "https://some-api.com"
});

// Calling the API with GET method.
generator.get('/some/endpoint/', {
   params: {
      user: "user-test",
      password: "password-test"
   }
})

Can I get the entire URL, including the params? In this case, the answer to my question would be: “https://some-api.com/some/endpoint&user=user-test&password=password-test”.

Here I’m just mocking the params, but in my real application, it’s dynamic.