fix: add creation date upon user registration
This commit is contained in:
parent
a0f58e0d44
commit
95a94bfed5
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue