HI @dipro @YuvrajSingh
Was there a resolution on this issue? I am having the same issue.
When in a board view I am using monday-sdj-js to save settings to monday.storage ‘board-123456’. On board view refresh i load the data by key ‘board-123456’. No issues there.
import mondaySdk from "monday-sdk-js";
const monday = mondaySdk();
monday.setApiVersion("2025-01");
const result = await monday.storage.getItem(`board-${boardId}`);
Outside the monday context, inside the same app, i have a client side page that also uses monday-sdk-js. Here i am setting the token, which i need to do because we are now outside the boardview and seemless authentication no longer applies:
import mondaySdk from "monday-sdk-js";
const monday = mondaySdk();
monday.setApiVersion("2025-01");
monday.setToken('xxx')
const result = await monday.storage.getItem(`board-${boardId};
console.log("Result:", result);
^^ No matter which monday API KEY i use here, it does not retreive the data. It works on the page that I am embedding into the board view, just not outside.
Then next to test i created a server page
import { Storage } from "@mondaycom/apps-sdk";
//ADD DATA
const storage = new Storage(process.env.MONDAY_TOKEN!);
const { success, error } = await storage.set(key, JSON.stringify(value));
//GET DATA
const storage = new Storage(process.env.MONDAY_TOKEN!);
const { success, value } = await storage.get(key, {
shared: true,
});
This also works. I also believe if I save the data initially from @mondaycom/apps-sdk", with shared:true parameter, i can retrieve that same data from the client.
I assume I am doing something wrong here. Otherwise that means for a simple board view app, I would need to have all users complete oAuth first, so that I can save data to monday.storage on server side using the USERS oauth API KEY rather than my .env personal account API KEY