Hello, I am trying to get the posts from a table t...
# help
e
Hello, I am trying to get the posts from a table that it's policy is set to uid() = post_id in getStaticProps in next.js. If table has no policy, I am able to get the data, otherwise no data is returned. I am not able to find any documentation on this. Can someone help?
g
@User Others have also had trouble. https://discord.com/channels/839993398554656828/869406062036529193 I don't use it, but my guess is because it is run on server you need to do something to set up a jwt token (user) for your query. Normally the client software handles that. You can probably check by seeing if you have a user right before your call.
e
Thank you, I'll look into setting up JWT and see where I get. Thanks!