@rivascva/dt-idl 1.1.85 → 1.1.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/go/auth/models.go +10 -1
- package/package.json +1 -1
package/go/auth/models.go
CHANGED
|
@@ -3,7 +3,16 @@ package auth
|
|
|
3
3
|
import "time"
|
|
4
4
|
|
|
5
5
|
// DefaultServiceTokenDuration is the default duration for service tokens.
|
|
6
|
-
const DefaultServiceTokenDuration =
|
|
6
|
+
const DefaultServiceTokenDuration = 60 * time.Minute
|
|
7
|
+
|
|
8
|
+
// DefaultUserTokenDuration is the default duration for user tokens.
|
|
9
|
+
const DefaultUserTokenDuration = 15 * time.Minute
|
|
10
|
+
|
|
11
|
+
// DefaultServiceRefreshTokenDuration is the default duration for refresh tokens.
|
|
12
|
+
const DefaultServiceRefreshTokenDuration = 7 * 24 * time.Hour
|
|
13
|
+
|
|
14
|
+
// DefaultUserRefreshTokenDuration is the default duration for refresh tokens.
|
|
15
|
+
const DefaultUserRefreshTokenDuration = 30 * 24 * time.Hour
|
|
7
16
|
|
|
8
17
|
// approvedServices is a list of services that are allowed to access sensitive data.
|
|
9
18
|
var approvedServices = []string{"dt-trade-service", "dt-portfolio-service", "dt-asset-service", "dt-user-service"}
|