slapid and player now links when registering

This commit is contained in:
2026-02-17 18:33:22 +11:00
parent 35eb2e695a
commit c16db1bf60
11 changed files with 137 additions and 28 deletions

View File

@@ -4,6 +4,8 @@ import (
"github.com/pkg/errors"
)
var ErrNoSteam error = errors.New("steam connection not found")
func (s *OAuthSession) GetSteamID() (string, error) {
connections, err := s.UserConnections()
if err != nil {
@@ -14,5 +16,5 @@ func (s *OAuthSession) GetSteamID() (string, error) {
return conn.ID, nil
}
}
return "", errors.New("steam connection not found")
return "", ErrNoSteam
}