Skip to main content

Module cloud

Module cloud 

Source
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-http control-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§

CloudClient
Client of the Redseat cloud. Cheap to clone.
CloudServer
A server of the user’s list (TS IServer).
CloudSession
A cloud session. Sessions last 30 days and the cloud extends them when used.
CloudUser
The signed-in user, as the cloud knows them.
ServerDirect
Direct HTTPS access to a server, given by the cloud only to users with access (TS IServerDirect). URLs are https://<ip-encoded>.<label>.<zone>:<port>.
ServerDirectAddresses
Addresses a server reported for direct HTTPS (TS IServerDirectAddresses).
ServerToken
A token for one server, signed by the cloud (TS IToken).

Constants§

DEFAULT_CLOUD_URL
Default cloud address.