metaData supplied to /api/login
When using the login api you can supply a
metaDataobject with info like name, type, description. It says:
This meta data is used to describe the refresh token that may be generated for this login request.
Assuming refresh tokens are enabled for the app how is this information involved? Originally I assumed this data would be provided (and displayed) with the login records, but apparently it has a different use.
dan last edited by
I'm not sure I understand your question.
The data is available when you retrieve the refresh tokens using, for example, the
This helps you distinguish between different devices for an account, if you need to do so.
See also https://fusionauth.io/community/forum/topic/903/is-it-possible-to-limit-the-number-of-devices-a-user-can-login-with for a discussion of this.
Sorry for the ambiguous question and suuuuper late reply, I was help hostage by another project.
..and thanks for the info, that helps me understand its intent.
What I was speaking about is seeing some of the metadata (device name, type) in the "Manage User" -> "Recent Logins" list to differentiate the logins. After some more exploring it does look like it shows up in "Manage User" -> "Session" instead though.
joshua last edited by
Glad you found it in our UI!