Can you log `user` and see what it sows?
Can you log
user and see what it sows?useruser.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 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")
}