chore: remove unnecessary console.logs

This commit is contained in:
2025-05-29 17:19:13 +02:00
parent 725cc74102
commit 41c3dfdfe4
7 changed files with 0 additions and 17 deletions

View File

@ -5,7 +5,6 @@ import { type FC } from "react";
const Home: FC = () => {
const profile = useAuth((state) => state.profile);
console.log({ profile });
const signOut = useAuth((state) => state.signOut);
return (

View File

@ -19,8 +19,6 @@ export const OAuthProvider: FC<IOAuthProvider> = ({ children }) => {
if (active && redirectURI) {
const codeResponse = await codeApi(token, nonce);
console.log("gen code:", { codeResponse });
const params = new URLSearchParams({
code: codeResponse.code,
state,

View File

@ -71,10 +71,6 @@ const AuthLayout = () => {
useEffect(() => {
if (!active) {
console.log(
"setting search params:",
Object.fromEntries(searchParams.entries()),
);
setActive(true);
setClientID(searchParams.get("client_id") ?? "");
setRedirectURI(searchParams.get("redirect_uri") ?? "");

View File

@ -36,8 +36,6 @@ export default function LoginPage() {
const onSubmit: SubmitHandler<LoginForm> = useCallback(
async (data) => {
console.log({ data });
setLoading(true);
setError("");
setSuccess("");
@ -48,8 +46,6 @@ export default function LoginPage() {
password: data.password,
});
console.log(response);
const account = await repo.save({
accountId: response.id,
label: response.full_name,

View File

@ -31,8 +31,6 @@ export default function RegisterPage() {
const onSubmit: SubmitHandler<RegisterForm> = useCallback(
async (data) => {
console.log({ data });
setLoading(true);
setError("");
setSuccess("");

View File

@ -72,8 +72,6 @@ export const useAuth = create<IAuthState>((set, get) => ({
const accounts = await getAllAccounts(db);
console.log("loaded accounts:", accounts);
if (!accounts || accounts.length === 0) {
set({ signInRequired: true });
}
@ -114,7 +112,6 @@ export const useAuth = create<IAuthState>((set, get) => ({
try {
const response = await fetchProfileApi();
console.log("authenticate response:", response);
try {
// update local account information

View File

@ -12,7 +12,6 @@ export const getDeviceId = async () => {
navigator.language, // Primary language
navigator.maxTouchPoints, // Touch capability
];
console.log(fingerprintParts);
const rawFingerprint = fingerprintParts.join("|");
const encoder = new TextEncoder();