Skip to content

Commit

Permalink
Update How to generate Google API keys wizard (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklas-dahl authored Dec 28, 2020
1 parent 3f24a60 commit 2444502
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions How to generate Google API keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,13 @@ response = await fetch('https://accounts.google.com/o/oauth2/token', {
json = await response.json();
console.log(json);
if (!json.error) {
copy(json.refresh_token);
alert('The refresh_token has been copied into your clipboard. You’re done!');
if (copy) {
copy(json.refresh_token);
alert('The refresh_token has been copied into your clipboard. You’re done!');
} else {
console.log('Copy your token:', json.refresh_token);
alert('Copy your refresh_token from the console output. You’re done!');
}
}
```

Expand Down

0 comments on commit 2444502

Please sign in to comment.