I’ve been trying to use Storage in a Monday Code endpoint.
Let’s say some app configuration needs to be selected by the user in a Board View, and we want to store that config via Storage.set. That config will be used within an automation integration.
The board view has a sessionToken via monday.get('sessionToken') which is used to authenticate within the endpoint. But using that as an access token for Storage doesn’t seem to be allowed (it says “You need to log in or sign up before continuing” in the logs).
It would probably be fine to call Storage.get within the integration handler because we have a shortLivedToken available.
But there isn’t a way to call Storage.set within the board view in the first place.
The app shouldn’t require a more complex OAuth flow. Ultimately, this would be easy using a database in a custom backend, but just doesn’t seem possible in Monday Code unless I’m missing something…