Skip to content

Commit

Permalink
fetching bearer token from environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ESteanes committed Jul 5, 2024
1 parent a13ff2d commit 203ce29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion expense-manager/datafetcher/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func getInfo(w http.ResponseWriter, r *http.Request) {
pageSize := int32(30) // int32 | The number of records to return in each page. (optional)
filterAccountType := openapi.AccountTypeEnum("SAVER") // AccountTypeEnum | The type of account for which to return records. This can be used to filter Savers from spending accounts. (optional)
filterOwnershipType := openapi.OwnershipTypeEnum("INDIVIDUAL") // OwnershipTypeEnum | The account ownership structure for which to return records. This can be used to filter 2Up accounts from Up accounts. (optional)
auth := context.WithValue(context.Background(), openapi.ContextAccessToken, "up:yeah:C3DlfCwIE5Xm2NmTAlIubIlkp5COFGasxeRE9N5kkzdgNOb671WwKVr7ZBZC7tnIogXLsGA7ph5u2cJ1ceVBps6HLG9pco66hmj6GTGoum4pcwEjKW2z0SBryb0dY7W6")
auth := context.WithValue(context.Background(), openapi.ContextAccessToken, os.Getenv("up-bank-bearer-token"))

configuration := openapi.NewConfiguration()
apiClient := openapi.NewAPIClient(configuration)
Expand Down
1 change: 1 addition & 0 deletions expense-manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"
"os"
"github.com/esteanes/expense-manager/datafetcher"
)

Expand Down

0 comments on commit 203ce29

Please sign in to comment.