TheExGenesis / community-archive

An open tweet database and API anyone can build on.
https://www.community-archive.org
MIT License
54 stars 7 forks source link

use auth hooks to edit the twitter auth's JWT #143

Open TheExGenesis opened 1 month ago

TheExGenesis commented 1 month ago

Currently we're adding the twitter username and user id to the auth JWT which is used to check read/write permissions on the db - we're doing this in a hacky way here, but there's a supabase feature for it called auth hooks.