aboutsummaryrefslogtreecommitdiff
path: root/src/client/apis/google_docs/GooglePhotosClientUtils.ts
diff options
context:
space:
mode:
authorSam Wilkins <35748010+samwilkins333@users.noreply.github.com>2019-10-09 05:38:16 -0400
committerSam Wilkins <35748010+samwilkins333@users.noreply.github.com>2019-10-09 05:38:16 -0400
commit0d1d884ae24c74cc92b3be7a429873bde3d4370c (patch)
treecc119ceeca28ffb05d7f73d3a6e02da68adddd4e /src/client/apis/google_docs/GooglePhotosClientUtils.ts
parent11892eadbbafcbfb64966bc7a3975d5260b9399f (diff)
clean up and extensibility for authentication manager
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 {