If I as a tenant needed to make a request to your Worker, would I hit your domain?
If I as a tenant needed to make a request to your Worker, would I hit your domain?



user and see what it sows?user.id, and [ Object ].id is undefinedconsole.log(env) output anything? It should be a map of your bindings.walletID - ?fetch handler without any wrapper functions..get is "failing" silently because it's just returning null.itty-router-openapi and what's happening there. If env is logging the bindings within that function then get should work, as it's a method on the binding type.export const createSession = async (user: any, databaseConfig: KVNamespace) => {
let absoluteExpiration = 30 * 24 * 60 * 60;
let expiration = new TimeSpan(10, 'd');
const sid = generateRandomString(60, alphabet('a-z', '0-9'));
const SessionBody = {
email: user.email,
email_verified: user.email_verified,
expires_at: expiration,
};
try {
await databaseConfig.put(sid, user.id, { metadata: SessionBody, expirationTtl: absoluteExpiration });
} catch (error) {
throw new Error('Error creating session');
}
return sid;
};export async function CheckAuth(env, walletID){
console.log(walletID)
console.log(env.SESSION.get)
try{
const sid = await env.SESSION.get(walletID)
console.log(sid)
}
catch(ex){
console.log(ex)
}
console.log("SID")
}