Messages view and JWT validation
By RepoJournal , from @bgrgndzz's public GitHub activity
Backfilled
Buğra Gündüz built out a messaging interface for spoonsor with real-time socket support, and added JWT validation to validator.js.
In bgrgndzz/spoonsor, Gündüz created the messages view UI [1] and made it responsive across screen sizes [2]. He set up socket.io [3] to enable real-time communication, then implemented join and leave room functions [4] to manage connections. On the data side, he created a Message model [5] and added a query to fetch users who had interacted through messages [6].
In validatorjs/validator.js, Gündüz opened a pull request adding an isJWT function [7]. The validator checks whether a supplied string is a valid JWT token, using a regex based on community input. The change addresses an existing request [7].
One email a day. Unsubscribe in one click.
A short briefing every day bgrgndzz ships something — in about 3 minutes.
One email a day. Unsubscribe in one click. Read a past issue →
References
- [1] create messages view ui bgrgndzz/spoonsor
- [2] make messages view responsive bgrgndzz/spoonsor
- [3] setup socket.io bgrgndzz/spoonsor
- [4] join room and leave room functions bgrgndzz/spoonsor
- [5] create Message model bgrgndzz/spoonsor
- [6] fetch users interacted through messages bgrgndzz/spoonsor
- [7] Add isJWT ↗ validatorjs/validator.js