Hi, im trying to use the publish_Data scope to show public image files with blockstack.js, authentication is working fine, but the app is not asking for the publish_data permission at login time. It is for static website hosted at github.
Thanks in advance for any help about what’s wrong in the code.
<script src="https://unpkg.com/[email protected]/dist/blockstack.js" integrity="sha384-UnkhaTA3XqTl/a79lTWO+C85bbXyM8IIUYtSLfrkkNQJcCxocVZv8nHaMzrvS9ZH" crossorigin="anonymous"></script>
<script>
document.getElementById('signin-button').addEventListener('click', function() {
blockstack.redirectToSignIn()
})
document.getElementById(‘signout-button’).addEventListener(‘click’, function() {
blockstack.signUserOut(window.location.origin)
})
var appConfig = new blockstack.AppConfig(['store_write', 'publish_data'])
var userSession = new blockstack.UserSession({ appConfig: appConfig })