Skip to content

Commit

Permalink
Update migration-script-ubuntu.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
JayanaGunaweera01 committed Jun 29, 2023
1 parent a38eb49 commit aa0ee44
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ response=$(curl --location --request POST 'https://oauth2.googleapis.com/token'
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode "client_id=$gcpClientId" \
--data-urlencode "client_secret=$gcpClientSecret" \
--data-urlencode "refresh_token=$gcpRefreshToken" \
--data-urlencode 'grant_type=refresh_token')
--data-urlencode 'grant_type=client_credentials')

# Extract the access token from the response using jq
access_token=$(echo "$response" | jq -r '.access_token')
Expand Down

0 comments on commit aa0ee44

Please sign in to comment.