File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/meteor/app/oauth2-server-config/server/oauth Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments