1. Required auth
GET /api/me
createAuthMiddleware({ required: true }). Returns 401 without a token.
Each button calls one server endpoint. The server demonstrates a distinct way of using auth.
GET /api/me
createAuthMiddleware({ required: true }). Returns 401 without a token.
GET /api/feed
createAuthMiddleware({ required: false }). Always 200; personalized when logged in.
GET /api/proxy/me
Inside the handler, the server calls aeFetch(url); the wrapper picks up the current
request's loginToken and attaches it.
GET /api/proxy/explicit
Server mints a fresh token for the caller and uses Meteor.fetch(url, { token })
for the inner request.
GET /api/proxy/raw
Server calls Meteor.fetch(url) with no options. No token, no credentials, no context.
Click any button above to see a response.