FreeFeed / freefeed-server

FreeFeed server
https://freefeed.net
MIT License
41 stars 18 forks source link

Expiration times and activation codes for app tokens #466

Closed davidmz closed 3 years ago

davidmz commented 4 years ago

This PR introduces the expiration times and activation codes for app tokens according to this RFC. These changes is fully backward-compatible, so it is possible to update server without waiting for the client changes.

This PR also fixes the realtime authorization problem described here. Every 5 minutes the special periodic job re-authorizes all active realtime connections. If some token appears to be expired or inactivated by owner, this connection becames unauthorized.