Unable to access KV value from a TypeScript. I have been spinning my wheels on this for a couple of

Unable to access KV value from a TypeScript.

I have been spinning my wheels on this for a couple of days. I have a Worker (Auth) running Typescript and I reference a linked module.

import { GetGuid, CheckAuth } from '../../util/Util';


When I call CheckAuth (and pass in the "env" variable, I can see the KV Namespaces, but when I attempt to get a value from the namespace, it just fails silently and moves on.

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")
}


What am I doing wrong?
Was this page helpful?