Skip to content

Commit

Permalink
Update no.oauth.cookie.exception.filter.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleyww93 committed Dec 31, 2024
1 parent 84110be commit 73fcf74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/shopify/auth/no.oauth.cookie.exception.filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export class NoOAuthCookieExceptionFilter implements ExceptionFilter {
catch(exception: unknown, host: ArgumentsHost) {
this.logger.debug(`In NoOAuthCookieExceptionFilter`);
const ctx = host.switchToHttp();
this.logger.debug('ctx type', (ctx as any).contextType ?? 'unknown');
this.logger.debug('exception being filtered', exception);
if ((ctx as any).contextType && (ctx as any).contextType === 'graphql') {
//do nothing as we want to see the GQL errors in the manager, so we rethrow
this.logger.debug(`graphql context, skipping`);
Expand Down

0 comments on commit 73fcf74

Please sign in to comment.