Our plugin has a paid credits system for usage. We give 20 free credits on a free account sign up through our website. I’d like to remove the friction of a user needing to sign up for an account before they can try out the plugin.
I saw that you can use:
let userId = require('uxp').userInfo.userId(); // Get the GUID of plugin user
console.log(userId); // e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
to get a user identifier, which we can then use to give free credits to that ID. I’m sure people can figure out a way to spoof GUIDs and get unlimited credits, but otherwise is there any reason we shouldn’t use this method instead of requiring an account sign up?
Thank you!