oauth2
oauth2 copied to clipboard
about the expires_in
how to set time expires_in
I would also like to know.
I did:
manager.SetAuthorizeCodeTokenCfg(&manage.Config{AccessTokenExp: time.Minute, RefreshTokenExp: time.Hour * 24 * 3, IsGenerateRefresh: true})
but it does not work
@tvnking try this:
manager.SetClientTokenCfg(&manage.Config{AccessTokenExp: time.Second * 15})
How can I set a token to no expiry
@tvnking try this:
manager.SetClientTokenCfg(&manage.Config{AccessTokenExp: time.Second * 15})
I have added the line you given. But my access token expiration still not change. Did I miss something? Currently, I just ran the sample code with line addition from yours.