chore: remove unnecessary console.logs
This commit is contained in:
@ -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 (
|
||||
|
@ -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,
|
||||
|
@ -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") ?? "");
|
||||
|
@ -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,
|
||||
|
@ -31,8 +31,6 @@ export default function RegisterPage() {
|
||||
|
||||
const onSubmit: SubmitHandler<RegisterForm> = useCallback(
|
||||
async (data) => {
|
||||
console.log({ data });
|
||||
|
||||
setLoading(true);
|
||||
setError("");
|
||||
setSuccess("");
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user