• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

metaData supplied to /api/login

Scheduled Pinned Locked Moved
Q&A
0
4
2.2k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    Moonshine
    last edited by Moonshine 4 Aug 2021, 17:04 8 Apr 2021, 17:04

    When using the login api you can supply a metaData object 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.

    Thanks!

    1 Reply Last reply Reply Quote 0
    • D
      dan
      last edited by 15 Apr 2021, 15:08

      I'm not sure I understand your question.

      The data is available when you retrieve the refresh tokens using, for example, the /api/jwt/refresh endpoint: https://fusionauth.io/docs/v1/tech/apis/jwt/

      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.

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      1 Reply Last reply Reply Quote 0
      • M
        Moonshine
        last edited by 30 Apr 2021, 17:27

        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.

        Thanks!

        1 Reply Last reply Reply Quote 1
        • J
          joshua
          last edited by 5 May 2021, 22:50

          @Moonshine,

          Glad you found it in our UI!

          Thanks,
          Josh

          1 Reply Last reply Reply Quote 0
          • First post
            Last post