I am using the auth0-java library and want to generate refresh tokens using the offline_access scope
If authentication succeeds the token will show in the dashboard user → devices tab correctly (counter will increment)
However I cannot figure out how to specify the “name” shown there. Using the java API it will always be “okhttp”. Doing some testing it seems like it is always the “user-agent” http header that is taken as device name (i.e. I can force a different name by specifying a different “user-agent”)
Using the legacy API it was possible to specify this name using the “device” parameter but this does not seem to have any effect anymore (i.e. adding the parameter to the request changes nothing)
Is there some way to specify the name in the authentication request? Working around with the “user-agent” http header seems very cumbersome, especially as there is no easy way to access the raw okhttp requests via the java library