fix: when audience parameter is set overwrite the default.

This commit is contained in:
Felix Dubrownik
2023-05-31 08:50:46 +02:00
parent 1bb24d6a96
commit c8a78cbd80
4 changed files with 15 additions and 5 deletions

View File

@ -117,7 +117,6 @@ func TestManager_GenerateJWT_AdditionalAudiences(t *testing.T) {
token, err := jwt.ParseString(j, jwt.WithVerify(false))
assert.NoError(t, err)
assert.Equal(t, []string{
"test.hanko.io",
"additional.hanko.io",
"anotherOne",
}, token.Audience())