Compare commits
No commits in common. "982b60bde6a32ad1e6f5244d1e39a486c0068d67" and "a101fb122ba2796a5ae58045a61a0379fc61b05a" have entirely different histories.
982b60bde6
...
a101fb122b
30
auth/auth.go
30
auth/auth.go
@ -1,33 +1,5 @@
|
||||
package sharedauth
|
||||
|
||||
import "time"
|
||||
|
||||
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
|
||||
type InstallId struct {
|
||||
InstallId string
|
||||
Expiry time.Time
|
||||
}
|
||||
|
||||
type ValidateReq struct {
|
||||
LauncherToken string
|
||||
}
|
||||
|
||||
type ValidateResp struct {
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
package sharedDistribution
|
||||
package sharedUtils
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
Loading…
Reference in New Issue
Block a user