oauth2 icon indicating copy to clipboard operation
oauth2 copied to clipboard

about the expires_in

Open riddle-tran opened this issue 6 years ago • 4 comments

how to set time expires_in

riddle-tran avatar Feb 20 '19 10:02 riddle-tran

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

itanor avatar Feb 23 '19 16:02 itanor

@tvnking try this:

manager.SetClientTokenCfg(&manage.Config{AccessTokenExp: time.Second * 15})

itanor avatar Feb 23 '19 16:02 itanor

How can I set a token to no expiry

kpmane avatar Apr 15 '19 05:04 kpmane

@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.

edosyhptra avatar Jan 29 '20 04:01 edosyhptra