I’d like to authenticate users playing my game in the itchio app. When the itch.io app starts a game, it sets an ITCHIO_API_KEY environment variable containing a JWT token. This token can be passed to your game server (e.g. Nakama) to authenticate the user.
I tried to implement this as a BeforeAuthenticateCustom hook, but the JWT exceeds the 128-byte limit on custom authentication data.
Would it make sense to build itch.io authentication into Nakama? As both platforms are based on open-source software, I think they might attract similar crowds. I’m happy to take a look at implementing this if it makes sense.
If not, is there another approach to authentication that might work?
Docs: