Skip to content

Commit 36e1e0b

Browse files
Fix type error
1 parent 748139d commit 36e1e0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/meteor/app/oauth2-server-config/server/oauth/oauth2-server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ API.v1.addAuthMethod((routeContext) => {
7575
const authorization = routeContext.request.headers.get('authorization') ?? undefined;
7676
const query = isPlainObject(routeContext.queryParams) ? routeContext.queryParams : {};
7777
const accessToken = typeof query.access_token === 'string' ? query.access_token : undefined;
78-
if (routeContext.queryParams?.access_token) {
79-
delete routeContext.queryParams.access_token;
78+
if ((routeContext.queryParams as Record<string, unknown>)?.access_token) {
79+
delete (routeContext.queryParams as Record<string, unknown>).access_token;
8080
}
8181

8282
return oAuth2ServerAuth({ authorization, accessToken });

0 commit comments

Comments
 (0)