Admin Procedure

Below is returned data from the admin procedure. It only returns said data if you (the user) are authenticated and have the role of admin.

Before creating an account, make sure to add the ADMIN_EMAIL to the .env file. If this matches the authenticated user's Github email, then the role will automatically be set to admin. In any case, you may still make the change manually in the database.

Note: this data is fetched on the client as means of demonstrating client side fetching, via tRPC + Tanstack Query.

Loading...