Skip to content

Commit 7e1920c

Browse files
committed
fix: updated values
1 parent c5569e9 commit 7e1920c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

recipe/session/claimsWithJWT_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,15 @@ func TestMergeIntoAccessTokenPayloadForJWT(t *testing.T) {
231231
assert.NotNil(t, sessionContainer)
232232

233233
sessionContainer.MergeIntoAccessTokenPayload(map[string]interface{}{
234-
"lol": "haha",
234+
"testClaim": "newValue",
235235
})
236236
jwtPayloadStr := sessionContainer.GetAccessTokenPayload()["jwt"].(string)
237237
jwtPayload := jwt.MapClaims{}
238238

239239
_, _, err = (&jwt.Parser{}).ParseUnverified(jwtPayloadStr, jwtPayload)
240240
assert.NoError(t, err)
241241

242-
assert.Equal(t, "haha", jwtPayload["lol"])
242+
assert.Equal(t, "newValue", jwtPayload["testClaim"])
243243
}))
244244

245245
testServer := httptest.NewServer(supertokens.Middleware(mux))

0 commit comments

Comments
 (0)