Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

39 total results found

Authentication

SWAIN – Visual Platform for Instant Bac...

This chapter explains the authentication endpoints provided by SWAIN for login, signup, token management, and email verification.

Auth Endpoints

SWAIN – Visual Platform for Instant Bac... Authentication

/auth/signup – Register a new user with an email and password. Returns a new user record and a JWT for authentication. /auth/login – Authenticate an existing user using email and password, returning a JWT token for subsequent requests. /auth/refresh – Use ...

Additional

SWAIN – Visual Platform for Instant Bac...

This chapter covers additional tools and resources for SWAIN, including the command-line interface and testing strategies.

Swain CLI

SWAIN – Visual Platform for Instant Bac... Additional

Quick Start Install once, generate everywhere. Install: pipx install swain_cli (Python 3.8+ or via virtual environment). Authenticate: Run swain_cli auth login to sign in with your Swain username and password (the interactive wizard uses this credenti...

Testing

SWAIN – Visual Platform for Instant Bac... Additional

Use an API client like Postman to manually test each generated endpoint and verify it returns the expected responses. Write automated integration tests to cover your core use cases, including CRUD operations and edge cases. Validate authentication flows by...

Troubleshooting

SWAIN – Visual Platform for Instant Bac... Additional

If database connections fail, verify the host, port, database name and credentials, and ensure your firewall allows access from the platform. If your schema has changed but endpoints don’t reflect updates, re-run the Sync Schema step to refresh the schema. ...

Security

SWAIN – Visual Platform for Instant Bac...

This chapter outlines best practices for securing your SWAIN backend, including recommendations for JWT secret management, token lifetimes, password hashing, protecting routes, restricting database access, securing SMTP credentials, and maintaining audit trail...

Security Best Practices

SWAIN – Visual Platform for Instant Bac... Security

JWT Security – Use a strong JWT secret (32+ random bytes) and rotate it carefully. Token Management – Keep access tokens short‑lived (e.g., 15–60 minutes) and use refresh tokens for longer-lived sessions. Password Security – Store passwords hashed with mod...

Glossary

SWAIN – Visual Platform for Instant Bac...

This chapter provides definitions for common terms and concepts used in SWAIN, such as row-level security (RLS), tenants/accounts, JWTs, and other key terminology to help users understand the platform.

Glossary

SWAIN – Visual Platform for Instant Bac... Glossary

RLS (Row-Level Security) – Restricts records returned or modified to those owned by the authenticated user’s tenant. Tenant/Account – The organization or unit that owns data; users belong to a tenant or account. JWT (JSON Web Token) – A compact, URL‑safe t...

The Query Builder

SWAIN – Visual Platform for Instant Bac...

Query-Filter

SWAIN – Visual Platform for Instant Bac... The Query Builder

Query- Add Filter

SWAIN – Visual Platform for Instant Bac... The Query Builder

Query- variables

SWAIN – Visual Platform for Instant Bac... The Query Builder

Query- Sorting

SWAIN – Visual Platform for Instant Bac... The Query Builder

Queries- Relationship and Search

SWAIN – Visual Platform for Instant Bac... The Query Builder

Query- Grouping and Aggregation

SWAIN – Visual Platform for Instant Bac... The Query Builder

Query- Create and Update

SWAIN – Visual Platform for Instant Bac... The Query Builder

New Page

SWAIN – Visual Platform for Instant Bac... The Query Builder