idk but it did something

This commit is contained in:
grngxd 2025-05-06 21:34:26 +01:00
parent 95a94bfed5
commit fbd23fe2cf
2 changed files with 36 additions and 20 deletions

View file

@ -30,10 +30,10 @@ 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(),
}
user := auth.User{
Blacklisted: false,
CreatedAt: time.Now(),
}
req, err := http.NewRequest(http.MethodGet, fmt.Sprintf("%s/%s", api, "users/@me"), nil)