get current session info

This commit is contained in:
nquidox 2025-09-14 19:33:23 +03:00
parent 476e5edf38
commit c59fbc0864
6 changed files with 84 additions and 26 deletions

View file

@ -1,8 +1,16 @@
package shared
import "net/http"
import (
"net/http"
"time"
)
type AuthData struct {
AccessToken string
RefreshCookie *http.Cookie
}
type CurrentSession struct {
Uuid string `json:"uuid"`
Expires time.Time `json:"expires"`
}