hooks ​
Interfaces ​
| Interface | Description |
|---|---|
| SessionMiddlewareConfig | Configuration for session middleware. |
| SessionResult | Result of session extraction attempt. |
| UserSession | User session data extracted from Appwrite. |
Functions ​
| Function | Description |
|---|---|
| createSessionHandle | Creates a SvelteKit handle function for session management. This is a convenience wrapper around extractSession. |
| extractSession | Extracts user session from cookies using Appwrite. Handles network errors and auth errors gracefully. |
| isExpectedAuthError | Checks if an error is an expected authentication error. |
| isNetworkError | Checks if an error is a network/connectivity error. |