Get the host name, time zone and IP Address in the Auth Response (idTokenPayload)

I would like to get the hostname, timezone and the IP Address in the Auth Response. What is the best way to return this data?
I have tried this using a rule, but the auth response does not give back the data.

The rule is as follows:
function (user, context, callback) {
const namespace = ‘’;
context.idToken[namespace + ‘host’] =; //obtain the host value passed in step 1, in the context object
callback(null, user, context);

I am passing the hostname in the Authentication Request

auth0 = new auth0.WebAuth({
clientID: AUTH_CONFIG.clientID,
domain: AUTH_CONFIG.domain,
host: window.location.hostname,
responseType: ‘token id_token’,
redirectUri: AUTH_CONFIG.callbackURL

Hey there!

Sorry for such huge delay in response! We’re doing our best in providing you with best developer support experience out there, but sometimes our bandwidth is not enough comparing to the number of incoming questions.

Wanted to reach out to know if you still require further assistance?