Skip to content

hooks ​

Interfaces ​

InterfaceDescription
SessionMiddlewareConfigConfiguration for session middleware.
SessionResultResult of session extraction attempt.
UserSessionUser session data extracted from Appwrite.

Functions ​

FunctionDescription
createSessionHandleCreates a SvelteKit handle function for session management. This is a convenience wrapper around extractSession.
extractSessionExtracts user session from cookies using Appwrite. Handles network errors and auth errors gracefully.
isExpectedAuthErrorChecks if an error is an expected authentication error.
isNetworkErrorChecks if an error is a network/connectivity error.