Blockstack auth with express


Is there any way to safely implement blockstack authentication into an Express/NodeJS app?

Most of the tutorials are in just React.



It depends on what you’re trying to achieve.

If you’re trying to have prove to code on your express server that the user is a certain person, then you could start auth in client side JavaScript and then send the resulting auth request token to your server where you’d run the handlePendingSignIn function.

This makes sense for a traditional client server app looking to add Blockstack auth as a sign in method.

In a full Blockstack app you’d never want to do auth on your server. You’d use Blockstack.js just like in the examples with whatever front end framework you use.


Yeah, for now I basically just want to add Blockstack login to my Express/NodeJS app