May be i'm dumb (that's probably true). Ill try to configure node_steam_openid on a NestJs projet but i got this error : ERROR [ExceptionHandler] node_steam_openid_1.default is not a constructor
My service :
import {Injectable} from '@nestjs/common';
import SteamAuth from 'node-steam-openid';
@Injectable()
export class SteamAuthService {
private readonly steam: SteamAuth;
constructor() {
this.steam = new SteamAuth({
realm: 'http://localhost:3000',
returnUrl: 'http://localhost:3000auth/steam/callback',
apiKey: 'AZERTYUIOP123456789',
});
}
async getRedirectUrl(): Promise<string> {
return await this.steam.getRedirectUrl(); // Renvoie l'URL d'authentification Steam
}
async authenticate(req: any): Promise<UserObject> {
try {
return await this.steam.authenticate(req)
//...do something with the data
} catch (error) {
console.error(error);
}
}
}
Hello,
May be i'm dumb (that's probably true). Ill try to configure node_steam_openid on a NestJs projet but i got this error :
ERROR [ExceptionHandler] node_steam_openid_1.default is not a constructor
My service :
And my controller :
Have you any idea to fix this ?
Thank's
p.s: sorry for my english i'm french :-|