Skip to content

Commit

Permalink
Merge branch '0.18' into fix/labstack-example
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar authored May 1, 2024
2 parents ebf7cfa + e640844 commit 4e5f2b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

## [0.18.0] - 2024-04-30

### Changes
- `session.CreateNewSession` now defaults to the value of the `st-auth-mode` header (if available) if the configured `config.GetTokenTransferMethod` returns `any`.
- Enable smooth switching between `useDynamicAccessTokenSigningKey` settings by allowing refresh calls to change the signing key type of a session.

### Breaking changes
- Make session required during signout.
- Fix the `with-labstack-echo` example.

Expand Down
7 changes: 1 addition & 6 deletions recipe/thirdpartypasswordless/signoutFeature_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,7 @@ func TestCallingAPIWithoutSessionShouldReturnOk(t *testing.T) {
if err != nil {
t.Error(err.Error())
}
assert.Equal(t, http.StatusOK, resp.StatusCode)
assert.Equal(t, 0, len(resp.Cookies()))
assert.Equal(t, "", resp.Header.Get("set-cookie"))

response := *unittesting.HttpResponseToConsumableInformation(resp.Body)
assert.Equal(t, "OK", response["status"])
assert.Equal(t, 401, resp.StatusCode)
}

func TestThatSignoutAPIreturnsTryRefreshTokenRefreshSessionAndSignoutShouldReturnOk(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion supertokens/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const (
)

// VERSION current version of the lib
const VERSION = "0.17.5"
const VERSION = "0.18.0"

var (
cdiSupported = []string{"3.0"}
Expand Down

0 comments on commit 4e5f2b9

Please sign in to comment.