Thats not possible with framework, but it can be made with database. But you will need to know whats the value of the token so when user redeems token on web you need to know value of token so script can assign specific perm.hello,
are you have script to use Privilege key on the web page