Giter VIP home page Giter VIP logo

Comments (6)

alonlong avatar alonlong commented on July 24, 2024 1

@robotdan it's ok now~ thank you very much

from go-client.

robotdan avatar robotdan commented on July 24, 2024

By default refresh tokens are not generated by the Login API. You can enable the refresh token in the Application security settings.

Applications > Edit > Security Tab > Generate refresh tokens
Applications > Edit > Security Tab > Allow token refresh

https://fusionauth.io/docs/v1/tech/users/applications#security

from go-client.

alonlong avatar alonlong commented on July 24, 2024

OK, I'll try it, TKS

from go-client.

alonlong avatar alonlong commented on July 24, 2024

@robotdan By default refresh tokens are not generated by the Login API. So how can i get the fresh token and keep freshing the token with client? I have updated the security settings like this:

Those options are set

But the refresh token is still empty by login api

from go-client.

robotdan avatar robotdan commented on July 24, 2024

You'll need to provide an applicationId on the Login request if you want to receive a refresh token.

https://fusionauth.io/docs/v1/tech/apis/login#authenticate-a-user

var credentials fusionauth.LoginRequest
credentials.LoginId = "xxxxxxxxx"
credentials.Password = "xxxxxx"
credentials.ApplicationId = "8af9b71b-5637-435c-9f4c-fb82e17dd114"

from go-client.

alonlong avatar alonlong commented on July 24, 2024

@robotdan Hi, I fetch the access token and refresh token by the login api. I can use the refresh token to exchange the access token, but the refresh token must have the expire time, how can i update the refresh token?
I think the fusion api 'ExchangeRefreshTokenForJWT' which is used to exchange the access token by refresh token can return a new refresh token, but the slice in response is empty.
Or if the refresh token is expire, the user should login again?

from go-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.