Skip to main content
EdgeSpark includes built-in user authentication. Your server code reads the current user through auth from edgespark/http. For browser login and sign-up flows, use @edgespark/web and the auth UI guide.

Read the current user

server/src/index.ts

Store data linked to a user

server/src/index.ts

Handle optional auth in public routes

server/src/index.ts

Verify webhooks yourself

Routes under /api/webhooks/* skip session validation, so verify signatures in your own code:
server/src/index.ts

See also

auth reference

The runtime auth API and when auth.user is available.

Path-based auth

How URL path conventions enforce login requirements without middleware.
Last modified on April 7, 2026