File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,19 @@ import "time"
44
55// Config authorization configuration parameters
66type Config struct {
7- // access token expiration time
7+ // access token expiration time, 0 means it doesn't expire
88 AccessTokenExp time.Duration
9- // refresh token expiration time
9+ // refresh token expiration time, 0 means it doesn't expire
1010 RefreshTokenExp time.Duration
1111 // whether to generate the refreshing token
1212 IsGenerateRefresh bool
1313}
1414
1515// RefreshingConfig refreshing token config
1616type RefreshingConfig struct {
17- // access token expiration time
17+ // access token expiration time, 0 means it doesn't expire
1818 AccessTokenExp time.Duration
19- // refresh token expiration time
19+ // refresh token expiration time, 0 means it doesn't expire
2020 RefreshTokenExp time.Duration
2121 // whether to generate the refreshing token
2222 IsGenerateRefresh bool
You can’t perform that action at this time.
0 commit comments