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

    I want to get a refresh token after login, but can't figure it out

    Scheduled Pinned Locked Moved
    Q&A
    refresh token login
    0
    2
    2.1k
    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.
    • danD
      dan
      last edited by

      I'm having trouble getting a refresh token. I've checked out the docs: https://fusionauth.io/docs/v1/tech/oauth/endpoints/#refresh-token-grant-request but can't figure it out.

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

      1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by dan

        This is a common issue, as there are a couple of prerequisite settings that you need to configure in order to get refresh tokens. When you are trying to get a refresh token and not seeing it, you should double check the following items:

        • you are passing a value of offline_access whenever a scope parameter is present.
        • you have configured the application to generate refresh tokens
          • if you are using OAuth, in the UI, it is in the OAuth tab; the field is Generate Refresh Tokens
          • if you are using the Login API, it is in the Security tab under Login API Settings; the field is Generate Refresh Tokens.
        • you are passing the client_id to the refresh grant request. This is required unless you are passing the Authorization header (which has the client_id in it).
        • the user is registered to the application for which you are issuing a refresh token.

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

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