Merge branch 'feature/upgrade-go'
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m35s

This commit was merged in pull request #1.
This commit is contained in:
2026-04-26 14:31:48 +02:00
87 changed files with 535 additions and 580 deletions
+2 -3
View File
@@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"
"git.blackforestbytes.com/BlackForestBytes/goext/exerr"
"git.blackforestbytes.com/BlackForestBytes/goext/langext"
"git.blackforestbytes.com/BlackForestBytes/goext/timeext"
"io"
"net/http"
@@ -83,8 +82,8 @@ func (c *oauth) AccessToken() (string, error) {
}
c.lock.Lock()
c.expiryDate = langext.Ptr(reqStartTime.Add(timeext.FromSeconds(r.ExpiresIn - 10)))
c.accessToken = langext.Ptr(r.AccessToken)
c.expiryDate = new(reqStartTime.Add(timeext.FromSeconds(r.ExpiresIn - 10)))
c.accessToken = new(r.AccessToken)
c.lock.Unlock()
return r.AccessToken, nil