aboutsummaryrefslogtreecommitdiff
path: root/src/client/apis/google_docs/GooglePhotosClientUtils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/apis/google_docs/GooglePhotosClientUtils.ts')
-rw-r--r--src/client/apis/google_docs/GooglePhotosClientUtils.ts8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/client/apis/google_docs/GooglePhotosClientUtils.ts b/src/client/apis/google_docs/GooglePhotosClientUtils.ts
index dd1492f51..8e88040db 100644
--- a/src/client/apis/google_docs/GooglePhotosClientUtils.ts
+++ b/src/client/apis/google_docs/GooglePhotosClientUtils.ts
@@ -19,14 +19,8 @@ import { List } from "../../../new_fields/List";
export namespace GooglePhotos {
- const AuthenticationUrl = "https://accounts.google.com/o/oauth2/v2/auth";
-
const endpoint = async () => {
- let response = await Identified.FetchFromServer(RouteStore.readGooglePhotosAccessToken);
- if (new RegExp(AuthenticationUrl).test(response)) {
- response = await AuthenticationManager.Instance.executeFullRoutine(response);
- }
- return new Photos(response);
+ return new Photos(await AuthenticationManager.Instance.executeFullRoutine("GooglePhotos"));
};
export enum MediaType {