I’ve been trying to test Blockstack’s authentication with the NextJS React Framework but running into issues.
First was the appConfig having issues due to: ReferenceError: window is not defined. I ended up manually setting the AppDomain argument.
Now I’m getting: Error:
redirectToSignInWithAuthRequest uses the
*window*.navigator API which is not available in the current environment.
It seems there is something that NextJS does to ‘window’ that is not making it play friendly with blockstack.
Has anyone come across the same issue or used/using NextJS with Blockstack? Would love to know what the workaround or setting might be to resolve this.
Btw, NextJS setup tutorial as reference if anyone has time to test it: https://nextjs.org/learn/basics/getting-started
Thanks in advance!