Expand description
The Redseat cloud (https://www.redseat.cloud): sign-in and the control plane.
- Sign-in, session check and sign-out: port of the mobile app’s
packages/core/src/services/auth.ts(better-auth,/api/auth/*). - Control plane: port of
@redseat/api-httpcontrol-plane.ts(server list, server token).
The cloud session token is sent as Authorization: Bearer to the cloud only, never
to a Redseat server. Servers get the short-lived ServerToken instead.
Structs§
- Cloud
Client - Client of the Redseat cloud. Cheap to clone.
- Cloud
Server - A server of the user’s list (TS
IServer). - Cloud
Session - A cloud session. Sessions last 30 days and the cloud extends them when used.
- Cloud
User - The signed-in user, as the cloud knows them.
- Server
Direct - Direct HTTPS access to a server, given by the cloud only to users with access
(TS
IServerDirect). URLs arehttps://<ip-encoded>.<label>.<zone>:<port>. - Server
Direct Addresses - Addresses a server reported for direct HTTPS (TS
IServerDirectAddresses). - Server
Token - A token for one server, signed by the cloud (TS
IToken).
Constants§
- DEFAULT_
CLOUD_ URL - Default cloud address.