new structs for api

This commit is contained in:
cyber-dream 2023-01-15 15:20:34 +03:00
parent d30e5633e9
commit 982b60bde6

View File

@ -1,5 +1,33 @@
package sharedauth package sharedauth
type InstallId struct { import "time"
InstallId string
type InstallIdRegisterReq struct {
InstallId InstallId
}
type InstallId string
func (id InstallId) Validate() bool {
//TODO: More checks
return id != ""
}
type RedirResp struct {
RedirectUrl string
}
type LauncherSession struct {
// Username string
// DiscordId string
SessionToken string
InstallId string
Expiry time.Time
}
type ValidateReq struct {
LauncherToken string
}
type ValidateResp struct {
} }