Users
Endpoints can read the request.user object when one of the following is true:
A user signed into your Swizzle frontend
The client sends the header
Authorization: Bearer <token>The client sends a query parameter
?token=<token>
Add an Auth Method like SMS, Google, etc from your dashboard. This will create all the necessary endpoints and helpers for you in your frontend and backend.

API endpoints have an optionalAuthentication or requiredAuthentication middleware. These auto-populate the user in the request.user object for you. request.user will be null when the request is unauthenticated.
Last updated