Skip to content

Commit

Permalink
fix: refresh token expiration (#835)
Browse files Browse the repository at this point in the history
* asd

* asd
  • Loading branch information
nunopato authored Feb 21, 2024
1 parent 9b11915 commit 5790efc
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/config/testdata/validate/success/nhost/nhost.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ rating = 'g'
expiresIn = 900

[auth.session.refreshToken]
expiresIn = 43200
expiresIn = 2592000

[auth.method]
[auth.method.anonymous]
Expand Down
2 changes: 1 addition & 1 deletion cmd/config/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func expectedConfig() *model.ConfigConfig {
CustomClaims: []*model.ConfigAuthsessionaccessTokenCustomClaims{},
},
RefreshToken: &model.ConfigAuthSessionRefreshToken{
ExpiresIn: ptr(uint32(43200)),
ExpiresIn: ptr(uint32(2592000)),
},
},
Method: &model.ConfigAuthMethod{
Expand Down
2 changes: 1 addition & 1 deletion examples/myproject/nhost/nhost.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ rating = 'g'
expiresIn = 900

[auth.session.refreshToken]
expiresIn = 43200
expiresIn = 2592000

[auth.method]
[auth.method.anonymous]
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
github.com/google/go-cmp v0.6.0
github.com/google/uuid v1.6.0
github.com/hashicorp/go-getter v1.7.3
github.com/nhost/be v0.0.0-20240213174037-192ddb75c14c
github.com/nhost/be v0.0.0-20240221171624-b650b97048ae
github.com/pelletier/go-toml/v2 v2.1.1
github.com/sirupsen/logrus v1.9.3
github.com/urfave/cli/v2 v2.27.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@ github.com/muesli/termenv v0.15.2 h1:GohcuySI0QmI3wN8Ok9PtKGkgkFIk7y6Vpb5PvrY+Wo
github.com/muesli/termenv v0.15.2/go.mod h1:Epx+iuz8sNs7mNKhxzH4fWXGNpZwUaJKRS1noLXviQ8=
github.com/nhost/be v0.0.0-20240213174037-192ddb75c14c h1:QYn9f12fIY1pF7PpAUEFr2TQMSdHsj2atD6sTyJ5Np4=
github.com/nhost/be v0.0.0-20240213174037-192ddb75c14c/go.mod h1:9XxyJdSY4oB7aymNHJEVmw4B9OtKJ4IYazjbtE0UPXk=
github.com/nhost/be v0.0.0-20240221171624-b650b97048ae h1:5JpIvJ30djZsRlmRHyIRnHPdAwhdkN8ylnZ7oxqt7mU=
github.com/nhost/be v0.0.0-20240221171624-b650b97048ae/go.mod h1:9XxyJdSY4oB7aymNHJEVmw4B9OtKJ4IYazjbtE0UPXk=
github.com/onsi/gomega v1.27.10 h1:naR28SdDFlqrG6kScpT8VWpu1xWY5nJRCF3XaYyBjhI=
github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M=
github.com/pelletier/go-toml/v2 v2.1.1 h1:LWAJwfNvjQZCFIDKWYQaM62NcYeYViCmWIwmOStowAI=
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ github.com/muesli/reflow/wrap
# github.com/muesli/termenv v0.15.2
## explicit; go 1.17
github.com/muesli/termenv
# github.com/nhost/be v0.0.0-20240213174037-192ddb75c14c
# github.com/nhost/be v0.0.0-20240221171624-b650b97048ae
## explicit; go 1.21
github.com/nhost/be/lib/graphql
github.com/nhost/be/lib/graphql/context
Expand Down

0 comments on commit 5790efc

Please sign in to comment.