Add session validation tool

This commit is contained in:
Zed 2026-08-17 05:29:01 +07:00
commit 206622ea38
2 changed files with 137 additions and 1 deletions

View file

@ -34,7 +34,7 @@ proc setApiProxy*(url: string) =
if "http" notin apiProxy:
apiProxy = "http://" & apiProxy
proc toUrl(req: ApiReq; sessionKind: SessionKind): Uri =
proc toUrl*(req: ApiReq; sessionKind: SessionKind): Uri =
let url = case sessionKind
of oauth: req.oauth
of cookie: req.cookie