API
Everything that happens on the web interface goes through a tRPC-based API.
This API is designed to be callable from both server-side code (e.g. for server-side rendering of wiki pages) and from the browser.
API reference
Check out https://wiki.creatorsgarten.org/api for an API reference.
Authentication
Contentsgarten uses Firebase Authentication to handle authentication.
- Users sign in with GitHub through Firebase.
- Firebase SDK handles the authentication state in the client side (such as storing and rotating ID tokens).
- When invoking APIs, the frontend obtains the ID token from the Firebase SDK and sends it to the API as a Bearer token.