Skip to content

Commit 3bc8f2a

Browse files
committed
test(fix): reset originatingAuthCodeId in refresh_token scope test
Reset accessToken.originatingAuthCodeId to undefined before testing refresh token grant with scope to ensure test isolation
1 parent 6e2efb4 commit 3bc8f2a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/e2e/grants/refresh_token.grant.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ describe("refresh_token grant", () => {
7676

7777
it("successful with scope", async () => {
7878
// arrange
79+
accessToken.originatingAuthCodeId = undefined; // Reset to undefined for this test
7980
const bearerResponse = await grant.makeBearerTokenResponse(client, accessToken);
8081
request = new OAuthRequest({
8182
body: {

0 commit comments

Comments
 (0)