get current session info
This commit is contained in:
parent
476e5edf38
commit
c59fbc0864
6 changed files with 84 additions and 26 deletions
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue