Navigation

    Colyseus
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Users
    1. Home
    2. palrogg
    P

    palrogg

    @palrogg

    Chat Follow Unfollow
    0
    Reputation
    4
    Posts
    732
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • Profile
    • More
      • Continue chat with palrogg
      • Flag Profile
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    palrogg Follow

    Posts made by palrogg

    RE: Auth which fail from time to time?

    It worked, thank you so much! Solved.
    I spent so much time on this...

    posted in Questions & Help •
    RE: Auth which fail from time to time?

    Update: it didn’t change anything... If someone has a clue, I'd be very grateful!

    posted in Questions & Help •
    RE: Auth which fail from time to time?

    Hi Endel, thank you for your reply!

    I had 0.10.6 and I just upgraded to 0.10.9, no change... But I use Colyseus-unity3d, maybe there's a problem there. Here is the client-side code where the error occurs, in Colyseus/Auth.cs:

    screenshot

    The error happens at line 271, but I'm wondering if it may be come from the way the device id gets generated... I'll give it a try tomorrow. Cheers!

    posted in Questions & Help •
    Auth which fail from time to time?

    Hello,

    Is it just me, or do you also have troubles with the Auth.cs plugin?

    Sometimes it works perfectly, sometimes I get a 401 from my server (either locally or externally). Both my local and my remote server logs “invalid signature“.

    This log seems to come from verify.js lines 126-134:
    valid = jws.verify(jwtString, decodedToken.header.alg, secretOrPublicKey);
    […]
    if (!valid) {
    return done(new JsonWebTokenError('invalid signature'));
    }

    I didn't change anything to my code, my remote host didn't restart the server script for at least two weeks, and when I try even the earliest commits it doesn't solve anything. But when I launch another project I don't work on anymore, the connection succeeds.

    I spent quite a lot of time on this. Any help would be appreciated.

    Best
    Paul

    posted in Questions & Help •