Point to browser.blockstack.org

My blockstack app kept pointing to localhost, here is how to make it point to browser.blockstack.org. This is for the sign in, in the hello world tutorial
document.getElementById(‘signin-button’).addEventListener(‘click’, function(event) {
event.preventDefault()

var BLOCKSTACK_HOST = 'https://browser.blockstack.org/auth'
var DEFAULT_SCOPE = ['store_write']
var redirectURI = `${window.location.origin}/`
var manifestURI = `${window.location.origin}/manifest.json`
var scopes = DEFAULT_SCOPE
var authRequest = blockstack.makeAuthRequest(blockstack.generateAndStoreTransitKey(), redirectURI, manifestURI, scopes)
blockstack.redirectToSignInWithAuthRequest(authRequest, BLOCKSTACK_HOST)

})

1 Like