Skip to content

Commit ece4208

Browse files
committed
auth: access_token to authenticated details
1 parent a5c4cdc commit ece4208

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ func (a *Auth) SignUp(ctx context.Context, credentials UserCredentials) (*User,
5858
}
5959

6060
type AuthenticatedDetails struct {
61+
AccessToken string `json:"access_token"`
6162
TokenType string `json:"token_type"`
6263
ExpiresIn int `json:"expires_in"`
6364
RefreshToken string `json:"refresh_token"`
@@ -170,7 +171,6 @@ func (a *Auth) User(ctx context.Context, userToken string) (*User, error) {
170171
injectAuthorizationHeader(req, userToken)
171172
res := User{}
172173
errRes := authError{}
173-
req.Header.Set("apikey", a.client.apiKey)
174174
hasCustomError, err := a.client.sendCustomRequest(req, &res, &errRes)
175175
if err != nil {
176176
return nil, err

0 commit comments

Comments
 (0)