fix: add creation date upon user registration

This commit is contained in:
hexlocation 2025-05-06 19:00:17 +02:00
parent a0f58e0d44
commit 95a94bfed5

View file

@ -8,6 +8,8 @@ import (
"net/http"
"net/url"
"strings"
"time"
"stereo.cat/backend/internal/auth"
)
@ -30,6 +32,7 @@ func New(redirectUri, clientId, clientSecret string) Client {
func (c Client) GetUser(t auth.TokenResponse) (auth.User, error) {
user := auth.User {
Blacklisted: false,
CreatedAt: time.Now(),
}
req, err := http.NewRequest(http.MethodGet, fmt.Sprintf("%s/%s", api, "users/@me"), nil)