> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/integrations/builtin/app-nodes/duaer-nodes-base.googledrive/common-issues.md).

# Common issues with Google Drive in Duaer

Common Google Drive node issues in Duaer: unverified app, expiring access, OAuth errors, and getting recent files.
## Google hasn't verified this app <a href="#google-hasnt-verified-this-app" id="google-hasnt-verified-this-app"></a>

If the OAuth app User Type is Internal, create it and sign in with the same Google Workspace account. If it is External, add the sign-in email to Test users on the Audience page of the Google Cloud console.

## Access expires after a few days <a href="#google-cloud-app-becoming-unauthorized" id="google-cloud-app-becoming-unauthorized"></a>

Apps with Publishing status Testing and User type External lose consent after 7 days. Reconnect the credential in Duaer, or publish the app to In production.

## Google Drive OAuth error <a href="#google-drive-oauth-error" id="google-drive-oauth-error"></a>

Usually the redirect URL registered in Google does not match the OAuth Redirect URL in the Duaer credential. Read the links in the Google error first. On self-hosted Duaer, also check that DUAER_EDITOR_BASE_URL and DUAER_WEBHOOK_URL are full public domains.

## Get the most recently changed files <a href="#get-recent-files-from-google-drive" id="get-recent-files-from-google-drive"></a>

1. In a Google Drive node, choose File/Folder > Search and turn on Return All.
2. Under Filter, set What to Search to Files. Under Options, set Fields to *.
3. Add a [Sort](/integrations/builtin/core-nodes/duaer-nodes-base.sort.md) node, descending by modifiedTime.
4. Add a Limit node to keep the first item, and pass its id to the next Google Drive node.
## Questions

### Why does a Duaer Google credential stop working after 7 days?

Google OAuth apps in Testing with External users lose consent after 7 days. Reconnect in Duaer, or publish the app to In production.

