Skip to content

Commit 7d41418

Browse files
committed
add comments to expiration config
1 parent 05b2b53 commit 7d41418

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

manage/config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ import "time"
44

55
// Config authorization configuration parameters
66
type 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
1616
type 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

0 commit comments

Comments
 (0)