Xano JS SDK - Can't instantiate XanoClient with XanoSessionStorage

Hello guys, I'm trying to set the Xano SDK up to use session storage but I keep getting this error: ReferenceError: Can't find variable: XanoSessionStorage

Here's my setup

<script type='text/javascript' src='https://cdn.jsdelivr.net/npm/@xano/js-sdk@latest/dist/xano.min.js'></script>

<script>

const xano = new XanoClient({

'apiGroupBaseUrl': 'my endpoint url',

'storage': new XanoSessionStorage()

});

// rest of the code...

</script>

Is this a bug with the SDK or am I doing anything wrong here? Appreciate your advice & help please. Thanks!

3 replies