chore: remove unnecessary console.logs
This commit is contained in:
@ -5,7 +5,6 @@ import { type FC } from "react";
|
|||||||
|
|
||||||
const Home: FC = () => {
|
const Home: FC = () => {
|
||||||
const profile = useAuth((state) => state.profile);
|
const profile = useAuth((state) => state.profile);
|
||||||
console.log({ profile });
|
|
||||||
const signOut = useAuth((state) => state.signOut);
|
const signOut = useAuth((state) => state.signOut);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -19,8 +19,6 @@ export const OAuthProvider: FC<IOAuthProvider> = ({ children }) => {
|
|||||||
if (active && redirectURI) {
|
if (active && redirectURI) {
|
||||||
const codeResponse = await codeApi(token, nonce);
|
const codeResponse = await codeApi(token, nonce);
|
||||||
|
|
||||||
console.log("gen code:", { codeResponse });
|
|
||||||
|
|
||||||
const params = new URLSearchParams({
|
const params = new URLSearchParams({
|
||||||
code: codeResponse.code,
|
code: codeResponse.code,
|
||||||
state,
|
state,
|
||||||
|
@ -71,10 +71,6 @@ const AuthLayout = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!active) {
|
if (!active) {
|
||||||
console.log(
|
|
||||||
"setting search params:",
|
|
||||||
Object.fromEntries(searchParams.entries()),
|
|
||||||
);
|
|
||||||
setActive(true);
|
setActive(true);
|
||||||
setClientID(searchParams.get("client_id") ?? "");
|
setClientID(searchParams.get("client_id") ?? "");
|
||||||
setRedirectURI(searchParams.get("redirect_uri") ?? "");
|
setRedirectURI(searchParams.get("redirect_uri") ?? "");
|
||||||
|
@ -36,8 +36,6 @@ export default function LoginPage() {
|
|||||||
|
|
||||||
const onSubmit: SubmitHandler<LoginForm> = useCallback(
|
const onSubmit: SubmitHandler<LoginForm> = useCallback(
|
||||||
async (data) => {
|
async (data) => {
|
||||||
console.log({ data });
|
|
||||||
|
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
setError("");
|
setError("");
|
||||||
setSuccess("");
|
setSuccess("");
|
||||||
@ -48,8 +46,6 @@ export default function LoginPage() {
|
|||||||
password: data.password,
|
password: data.password,
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(response);
|
|
||||||
|
|
||||||
const account = await repo.save({
|
const account = await repo.save({
|
||||||
accountId: response.id,
|
accountId: response.id,
|
||||||
label: response.full_name,
|
label: response.full_name,
|
||||||
|
@ -31,8 +31,6 @@ export default function RegisterPage() {
|
|||||||
|
|
||||||
const onSubmit: SubmitHandler<RegisterForm> = useCallback(
|
const onSubmit: SubmitHandler<RegisterForm> = useCallback(
|
||||||
async (data) => {
|
async (data) => {
|
||||||
console.log({ data });
|
|
||||||
|
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
setError("");
|
setError("");
|
||||||
setSuccess("");
|
setSuccess("");
|
||||||
|
@ -72,8 +72,6 @@ export const useAuth = create<IAuthState>((set, get) => ({
|
|||||||
|
|
||||||
const accounts = await getAllAccounts(db);
|
const accounts = await getAllAccounts(db);
|
||||||
|
|
||||||
console.log("loaded accounts:", accounts);
|
|
||||||
|
|
||||||
if (!accounts || accounts.length === 0) {
|
if (!accounts || accounts.length === 0) {
|
||||||
set({ signInRequired: true });
|
set({ signInRequired: true });
|
||||||
}
|
}
|
||||||
@ -114,7 +112,6 @@ export const useAuth = create<IAuthState>((set, get) => ({
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetchProfileApi();
|
const response = await fetchProfileApi();
|
||||||
console.log("authenticate response:", response);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// update local account information
|
// update local account information
|
||||||
|
@ -12,7 +12,6 @@ export const getDeviceId = async () => {
|
|||||||
navigator.language, // Primary language
|
navigator.language, // Primary language
|
||||||
navigator.maxTouchPoints, // Touch capability
|
navigator.maxTouchPoints, // Touch capability
|
||||||
];
|
];
|
||||||
console.log(fingerprintParts);
|
|
||||||
|
|
||||||
const rawFingerprint = fingerprintParts.join("|");
|
const rawFingerprint = fingerprintParts.join("|");
|
||||||
const encoder = new TextEncoder();
|
const encoder = new TextEncoder();
|
||||||
|
Reference in New Issue
Block a user