Once the user denies the authorization for the power up then we can’t open the authorization popup. By default the token is set to “&error=Token%20request%20rejected”. We are currently using getRestApi() to authorize the power up.
How to allow users to reauthorize the power up.
I have gone through this blog: Add Error To OAuth Deny
It says if the user denies then the token is set to “&error=Token%20request%20rejected” but this blog does not explain a way to allow the users to reauthorize the power up.