Skip to content

Commit cc155d2

Browse files
Update frontend/src/providers/AuthProvider.tsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent c0eb2c7 commit cc155d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/src/providers/AuthProvider.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
120120
localStorage.setItem(LocalStore.refreshToken, refreshToken);
121121

122122
setToken(accessToken);
123-
console.log('Saved token:', accessToken);
123+
if (process.env.NODE_ENV !== 'production') {
124+
console.log('Token saved successfully');
125+
}
124126
setIsAuthorized(true);
125127
fetchUserInfo();
126128
},

0 commit comments

Comments
 (0)