Skip to content

@mega-yfue/eufy-sdk / isSessionValid

Function: isSessionValid()

ts
function isSessionValid(s, skewSec?): boolean;

A persisted session is usable if it has a token that isn't (near-)expired.

Parameters

s

PersistedSession | null

skewSec?

number = 300

Returns

boolean

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.