Skip to content

Commit

Permalink
fix oauth error message logging
Browse files Browse the repository at this point in the history
  • Loading branch information
paustint committed Feb 4, 2025
1 parent 6cabc1d commit c51c90d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/auth/server/src/lib/OauthClients.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ENV, logger } from '@jetstream/api-config';
import { getErrorMessageAndStackObj } from '@jetstream/shared/utils';
import type * as oauth from 'oauth4webapi';

const oauthPromise = import('oauth4webapi');
Expand Down Expand Up @@ -75,6 +76,6 @@ export class OauthClients {

// eager init
OauthClients.getInstance().catch((err) => {
logger.error('FATAL INIT ERROR - could not load oauth clients', err);
logger.error(getErrorMessageAndStackObj(err), 'FATAL INIT ERROR - could not load oauth clients');
process.exit(1);
});

0 comments on commit c51c90d

Please sign in to comment.