more logs

This commit is contained in:
bootunloader
2024-09-19 13:31:25 +03:00
parent ff300dd0e7
commit fddcf7e858
2 changed files with 2 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ import { rng } from "$lib/utils/rng";
export const testIfSessionIsValid = async (jwt: string) => {
try {
console.log("Testing session validity...", jwt);
const res = await fetch(
`${constants.SCRAP_API_URL}/v1/user/get-balance?userId=6339`,
{

View File

@@ -36,6 +36,7 @@ export async function isSessionValidInStore(userId?: string) {
if (value === null) {
return { valid: false };
}
console.log("Checking session validity :: ", value);
return await testIfSessionIsValid(value.sessionToken);
} catch (err) {
return false;