Skip to content

Commit

Permalink
feat: conditionally show token refresh log
Browse files Browse the repository at this point in the history
  • Loading branch information
field123 committed Sep 22, 2023
1 parent 6eacf15 commit acf57f3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/composable-cli/src/lib/authentication/get-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ export async function getToken(
credentials.data.refresh_token
)

console.log(
"CALL WAS MADE TO RENEW TOKEN DID YOU EXPECT THIS? ",
renewedToken
)
if (process.env.NODE_ENV === "development") {
console.log(
"CALL WAS MADE TO RENEW TOKEN DID YOU EXPECT THIS? ",
renewedToken
)
}

if (!renewedToken.success) {
return {
Expand Down

0 comments on commit acf57f3

Please sign in to comment.