From f5853b77ef9506df056029282c475e5628fb6ab0 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Mon, 19 Oct 2020 14:09:01 -0400 Subject: [TMA-272] Add browser login flow to Instagram social linking (#56) * added in-app browser package and added social link for instagram * added comments and improved code clarity * added more skeleton code * Finished FB linking * updated facebook oauth to request for permission * finished twitter sign on * minor fixes --- src/constants/api.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/constants') diff --git a/src/constants/api.ts b/src/constants/api.ts index d5733592..8e935714 100644 --- a/src/constants/api.ts +++ b/src/constants/api.ts @@ -14,3 +14,14 @@ export const GET_IG_POSTS_ENDPOINT: string = API_URL + 'posts-ig/'; export const SEARCH_ENDPOINT: string = API_URL + 'search/'; export const MOMENTS_UPLOAD_ENDPOINT: string = API_URL + 'moments/'; export const VERIFY_INVITATION_CODE_ENDPOUNT: string = API_URL + 'verify-code/'; + +// Social Link +export const LINK_IG_ENDPOINT: string = API_URL + 'link-ig/'; +export const LINK_FB_ENDPOINT: string = API_URL + 'link-fb/'; +export const LINK_TWITTER_ENDPOINT: string = API_URL + 'link-twitter/'; + +// Social Link OAuth +export const DEEPLINK: string = 'https://tinyurl.com/y3o4aec5'; +export const LINK_IG_OAUTH: string = `https://www.instagram.com/oauth/authorize/?client_id=205466150510738&redirect_uri=${DEEPLINK}&scope=user_profile,user_media&response_type=code`; +export const LINK_FB_OAUTH: string = `https://www.facebook.com/v8.0/dialog/oauth?client_id=1308555659343609&redirect_uri=${DEEPLINK}&scope=user_posts,public_profile&response_type=code`; +export const LINK_TWITTER_OAUTH: string = API_URL + 'link-twitter-request/'; -- cgit v1.2.3-70-g09d2