Skip to content

Commit

Permalink
Merge pull request #31 from minskylab/dev
Browse files Browse the repository at this point in the history
Fixed default refresh token value and warning message MIN-46
  • Loading branch information
bregydoc authored Jul 8, 2022
2 parents adc2051 + 39baf55 commit a4a55e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion auth/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func New(source SecretSource, conf *config.Config) (*AuthManager, error) { // an

refreshTokenDuration, err := time.ParseDuration(refreshTokenDurationString)
if err != nil {
logrus.Warn("error at parsing access token duration, using default value")
logrus.Warn("error at parsing refresh token duration, using default value")
refreshTokenDuration = defaultRefreshTokenDuration
}

Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ providers:
accessSecret: ${PROVIDERS_EMAIL_JWT_ACCESS_SECRET|change-me-please}
refreshSecret: ${PROVIDERS_EMAIL_JWT_REFRESH_SECRET|change-me-please}
accessTokenDuration: ${PROVIDERS_EMAIL_JWT_ACCESS_TOKEN_DURATION|15m}
refreshTokenDuration: ${PROVIDERS_EMAIL_JWT_REFRESH_TOKEN_DURATION|30d}
refreshTokenDuration: ${PROVIDERS_EMAIL_JWT_REFRESH_TOKEN_DURATION|360h}
webhooks:
recoveryPasswordEvent:
url: ${PROVIDERS_EMAIL_WEBHOOKS_RECOVERY_PASSWORD_EVENT|}
Expand Down

0 comments on commit a4a55e6

Please sign in to comment.