I was wondering if it was possible to retrieve user data from Gaia storage on the server for the purpose of server side rendering data-hydrated web pages?
I’m building an app with Next.js and I wanted to be able to include spiderable open graph meta data from the user’s blockstack profile / public storage for rich sharing. Normally, I’d just make a network request in Next.js’ server-side
getInitialProps but any calls to blockstack seem to need
window to be defined.
I’m wondering if it is possible to retrieve this data server side. In a similar vain, it would be useful to have a server side check for
isUserLoggedIn for auth-based redirect logic.
Any advice on this topic would be greatly appreciated!