TypeScript Support
Scute provides comprehensive TypeScript definitions:
import type {
ScuteClient,
ScuteSession,
ScuteUserData,
ScuteTokenPayload,
AuthResponse,
SessionResponse,
} from "@scute/js-core";
// Use types for better development experience
const handleAuthResponse = (response: AuthResponse) => {
if (response.error) {
// Handle error
return;
}
// response.data is properly typed
console.log(response.data);
};