Full Error Message:
Error while creating new document. Error message: Application unauthorized.
Please authorize before trying to access Google Drive.
-You may get this error message when trying to generate a document though your google drive has not been connected and app unauthorized.
How to resolve:
-First you need to make sure this user is an assigned app user by following our activation instructions.
-Second, you want to decide if you would like each app user to authorize their own drive or if you would like only one Salesforce user to authorize the app and the google drive for ALL app users to generate documents too. See this article for more detail on this optional feature.
-If you would like each user to authorize the app and their own drive, each user will need to go to “DocGen Cofiguration” tab and click “Grant access.” Then you will follow the steps to connect your google drive account you would like to use to generate documents. You can click here if you need to create a new gmail/google account.