fix: .js toevoegen aan imports

This commit is contained in:
Tibo De Peuter 2025-03-04 21:17:42 +01:00
parent 0b2c90c8b5
commit d9f7b500c8
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
6 changed files with 13 additions and 13 deletions

View file

@ -5,7 +5,7 @@ import jwksClient from 'jwks-rsa';
import * as express from "express";
import * as jwt from "jsonwebtoken";
import {AuthenticatedRequest} from "./authenticated-request.js";
import {AuthenticationInfo} from "./authentication-info";
import {AuthenticationInfo} from "./authentication-info.js";
function createJwksClient(uri: string): jwksClient.JwksClient {
return jwksClient({

View file

@ -1,6 +1,6 @@
import { Request } from "express";
import { JwtPayload } from "jsonwebtoken";
import {AuthenticationInfo} from "./authentication-info";
import {AuthenticationInfo} from "./authentication-info.js";
export interface AuthenticatedRequest extends Request {
// Properties are optional since the user is not necessarily authenticated.

View file

@ -1,5 +1,5 @@
import cors from "cors";
import {EnvVars, getEnvVar} from "../util/envvars";
import {EnvVars, getEnvVar} from "../util/envvars.js";
export default cors({
origin: getEnvVar(EnvVars.CorsAllowedOrigins).split(','),