auth gives you access to the current authenticated user. Import it from edgespark/http in your server code.
auth.user
The authenticated user object is available in protected routes:
server/src/index.ts
auth.isAuthenticated()
Use auth.isAuthenticated() when you want a type-safe guard in routes that allow anonymous access:
server/src/index.ts
When user is available
See path-based auth for the full rules.
See also
Authenticate users
Guide to protected routes, optional auth, and webhook verification.
Path-based auth
How URL path conventions control authentication behavior.