dialupnoises / steam-login

Simple Connect / Express Steam authentication library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error on the steam login page

yoranmandema opened this issue · comments

I'm trying to add steam login for my node js server using this module. For some time it worked flawlessly, but suddenly I get an error on the steam login page as soon as I sign in:
https://i.imgur.com/SVYkM05.png

This is the code that's responsible for all the steam-login things:

exports.init = function (app){
    let steam = require('steam-login');

    app.use(steam.middleware({
        realm:  'localhost:8080', 
        verify: 'localhost:8080/verify',
        apiKey: '10(........................................)A9'
        })
      );

    app.get('/authenticate', steam.authenticate(), function(req, res) {
        res.redirect('/');
    });
    
    app.get('/verify', steam.verify(), function(req, res) {
        res.send(res.session.steamUser).end();
    });
    
    app.get('/logout', steam.enforceLogin('/'), function(req, res) {
        req.logout();
        res.redirect('/');
    });
}

I do not get any errors in my console when this happens.

What happens when you click "sign in"?

I have this problem too. I was using this module for a month today i update my site (nothing changed with steam-login or urls) It didnt throw anything just steam doesnt redirecting to site and writing just "Error"

I will tackle this issue when I have the time to maintain this project. Until then, if you have something critical that relies on this library, I suggest switching to passport-steam - that's a library with a much more mature codebase with more active maintainers.