Skip to content

Commit 5802073

Browse files
committed
test: fix azure test
1 parent 5b7a806 commit 5802073

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cmap/auth/mongodb_oidc/azure_machine_workflow.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ function isEndpointResultValid(
6363
): token is { access_token: unknown; expires_in: unknown } {
6464
if (token == null || typeof token !== 'object') return false;
6565
return (
66-
'access_token' in token &&
67-
typeof token.access_token === 'string' &&
68-
'expires_in' in token &&
69-
typeof token.expires_in === 'number'
66+
'accessToken' in token &&
67+
typeof token.accessToken === 'string' &&
68+
'expiresInSeconds' in token &&
69+
typeof token.expiresInSeconds === 'number'
7070
);
7171
}

0 commit comments

Comments
 (0)