Skip to content

Commit

Permalink
fix: Adjust call for user information
Browse files Browse the repository at this point in the history
Signed-off-by: Thor Anker Kvisgård Lange <tal@netic.dk>
  • Loading branch information
langecode committed Feb 20, 2024
1 parent f864b8c commit 83423bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/forge/bitbucketdatacenter/bitbucketdatacenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (c *client) Login(ctx context.Context, req *forge_types.OAuthRequest) (*mod
return nil, "", err
}

bc, err := c.newClient(ctx, &model.User{Token: token.AccessToken})
bc, err := c.newClient(ctx, &model.User{Token: token.AccessToken, Secret: token.RefreshToken, Expiry: token.Expiry.Unix()})
if err != nil {
return nil, "", fmt.Errorf("unable to create bitbucket client: %w", err)
}
Expand Down

0 comments on commit 83423bb

Please sign in to comment.