This is an example of how to use the passage_flex
crate with an HTTP server implemented with poem-openapi.
Start the server, setting PASSAGE_APP_ID
and PASSAGE_API_KEY
environment variables with valid values:
PASSAGE_APP_ID=your-app-id PASSAGE_API_KEY=your-api-key cargo run
Test the server operations:
curl -X POST http://localhost:3000/auth/register \
-H 'content-type: application/json' \
-d '{"email":"[email protected]"}'