Home / Companies / Convex / Blog / Post Details
Content Deep Dive

Testing authenticated functions from the dashboard

Blog post from Convex

Post Details
Company
Date Published
Author
Ian Macartney
Word Count
816
Language
English
Hacker News Points
-
Summary

The blog post provides a guide on testing authenticated functions in the Convex dashboard using the "Act as a user" feature, which allows developers to simulate user identities by passing in fake or decoded JWT values. It explains the process of obtaining a JWT from the browser, decoding its fields using tools like jwt.io, and configuring the dashboard to mimic a user's identity using fields such as "subject" and "issuer". It discusses the flexibility of Convex Auth, which can issue and validate its own JWTs, and provides examples of how to set up the identity fields for testing purposes, emphasizing the importance of understanding JWT structures for accurate function testing. The post concludes by inviting readers to provide feedback and highlights Convex as a comprehensive backend platform for building full-stack AI projects.