diff --git a/cmd/config/testdata/validate/success/nhost/nhost.toml b/cmd/config/testdata/validate/success/nhost/nhost.toml index a5ef4ea2d..fef0d9612 100644 --- a/cmd/config/testdata/validate/success/nhost/nhost.toml +++ b/cmd/config/testdata/validate/success/nhost/nhost.toml @@ -62,7 +62,7 @@ rating = 'g' expiresIn = 900 [auth.session.refreshToken] -expiresIn = 43200 +expiresIn = 2592000 [auth.method] [auth.method.anonymous] diff --git a/cmd/config/validate_test.go b/cmd/config/validate_test.go index 4b964a4ae..f52aa4f5f 100644 --- a/cmd/config/validate_test.go +++ b/cmd/config/validate_test.go @@ -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{ diff --git a/examples/myproject/nhost/nhost.toml b/examples/myproject/nhost/nhost.toml index 720b38dc9..5704afe48 100644 --- a/examples/myproject/nhost/nhost.toml +++ b/examples/myproject/nhost/nhost.toml @@ -57,7 +57,7 @@ rating = 'g' expiresIn = 900 [auth.session.refreshToken] -expiresIn = 43200 +expiresIn = 2592000 [auth.method] [auth.method.anonymous] diff --git a/go.mod b/go.mod index 5b34bd308..e066d2cb9 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 9b5573cc6..b2b536f9c 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/vendor/github.com/nhost/be/services/mimir/schema/schema.cue b/vendor/github.com/nhost/be/services/mimir/schema/schema.cue index 1ffc0964c..baab55785 100644 --- a/vendor/github.com/nhost/be/services/mimir/schema/schema.cue +++ b/vendor/github.com/nhost/be/services/mimir/schema/schema.cue @@ -320,7 +320,7 @@ import ( refreshToken: { // AUTH_REFRESH_TOKEN_EXPIRES_IN - expiresIn: uint32 | *43200 + expiresIn: uint32 | *2592000 } } diff --git a/vendor/modules.txt b/vendor/modules.txt index e094380ca..ad19b0bbd 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -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