summaryrefslogtreecommitdiff
path: root/internal/server/custom/custom.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server/custom/custom.go')
-rw-r--r--internal/server/custom/custom.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/server/custom/custom.go b/internal/server/custom/custom.go
index d4a0508..af6ad67 100644
--- a/internal/server/custom/custom.go
+++ b/internal/server/custom/custom.go
@@ -16,7 +16,7 @@ type (
Servers = institute.Servers
)
-func New(ctx context.Context, u string) (*Server, error) {
+func New(ctx context.Context, clientID string, u string) (*Server, error) {
pu, err := url.Parse(u)
if err != nil {
return nil, errors.WrapPrefix(err, "failed to parse custom server URL", 0)
@@ -32,6 +32,6 @@ func New(ctx context.Context, u string) (*Server, error) {
API := b.Endpoints.API.V3
s := &Server{Basic: b}
- s.Auth.Init(u, API.Authorization, API.Token)
+ s.Auth.Init(clientID, u, API.Authorization, API.Token)
return s, nil
}