diff --git a/services/web/app/src/Features/Authentication/AuthenticationController.mjs b/services/web/app/src/Features/Authentication/AuthenticationController.mjs index 7a691ddaca..62efb907b3 100644 --- a/services/web/app/src/Features/Authentication/AuthenticationController.mjs +++ b/services/web/app/src/Features/Authentication/AuthenticationController.mjs @@ -394,7 +394,7 @@ const AuthenticationController = { const middleware = async (req, res, next) => { const Oauth2Server = ( await import( - '../../../../modules/oauth2-server/app/src/Oauth2Server.js' + '../../../../modules/oauth2-server/app/src/Oauth2Server.mjs' ) ).default diff --git a/services/web/scripts/oauth/backfill_hashed_secrets.mjs b/services/web/scripts/oauth/backfill_hashed_secrets.mjs index 6e0f8c66e9..f7b66f881a 100644 --- a/services/web/scripts/oauth/backfill_hashed_secrets.mjs +++ b/services/web/scripts/oauth/backfill_hashed_secrets.mjs @@ -2,7 +2,7 @@ import { db, READ_PREFERENCE_SECONDARY, } from '../../app/src/infrastructure/mongodb.js' -import { hashSecret } from '../../modules/oauth2-server/app/src/SecretsHelper.js' +import { hashSecret } from '../../modules/oauth2-server/app/src/SecretsHelper.mjs' import { scriptRunner } from '../lib/ScriptRunner.mjs' async function main() { diff --git a/services/web/scripts/oauth/create_token.mjs b/services/web/scripts/oauth/create_token.mjs index 4d43981a19..e253d1f747 100644 --- a/services/web/scripts/oauth/create_token.mjs +++ b/services/web/scripts/oauth/create_token.mjs @@ -1,6 +1,6 @@ import minimist from 'minimist' import { db } from '../../app/src/infrastructure/mongodb.js' -import { hashSecret } from '../../modules/oauth2-server/app/src/SecretsHelper.js' +import { hashSecret } from '../../modules/oauth2-server/app/src/SecretsHelper.mjs' import { scriptRunner } from '../lib/ScriptRunner.mjs' async function main() { diff --git a/services/web/scripts/oauth/register_client.mjs b/services/web/scripts/oauth/register_client.mjs index 65248f3464..05d4f92ab9 100644 --- a/services/web/scripts/oauth/register_client.mjs +++ b/services/web/scripts/oauth/register_client.mjs @@ -1,7 +1,7 @@ import minimist from 'minimist' import mongodb from 'mongodb-legacy' import { db } from '../../app/src/infrastructure/mongodb.js' -import { hashSecret } from '../../modules/oauth2-server/app/src/SecretsHelper.js' +import { hashSecret } from '../../modules/oauth2-server/app/src/SecretsHelper.mjs' import { scriptRunner } from '../lib/ScriptRunner.mjs' const { ObjectId } = mongodb