|
99 | 99 | 'online': 'https://online-api.codingblocks.com/api/v2/jwt/otp/email', |
100 | 100 | 'hire': 'https://hire-api.codingblocks.com/login/otp/email', |
101 | 101 | 'codeskiller': 'https://code-gym-api.codingblocks.com/api/jwt/otp', |
102 | | - 'iccwc': 'https://iccwc.codingblocks.com/api/jwt/otp' |
| 102 | + 'cricket': 'https://cricket.codingblocks.com/api/jwt/otp' |
103 | 103 | }, |
104 | 104 | sendOtpMobile: { |
105 | 105 | 'hack': 'https://hack-api.codingblocks.com/api/v2/jwt/otp', |
106 | 106 | 'online': 'https://online-api.codingblocks.com/api/v2/jwt/otp/mobile', |
107 | 107 | 'hire': 'https://hire-api.codingblocks.com/login/otp/mobile', |
108 | 108 | 'codeskiller': 'https://code-gym-api.codingblocks.com/api/jwt/otp', |
109 | | - 'iccwc': 'https://iccwc.codingblocks.com/api/jwt/otp' |
| 109 | + 'cricket': 'https://cricket.codingblocks.com/api/jwt/otp' |
110 | 110 | }, |
111 | 111 | verifyOtpEmail: { |
112 | 112 | 'hack': 'https://hack-api.codingblocks.com/api/v2/jwt/otp/verify', |
113 | 113 | 'online': 'https://online-api.codingblocks.com/api/v2/jwt/otp/email/verify', |
114 | 114 | 'hire': 'https://hire-api.codingblocks.com/login/otp/email/verify', |
115 | 115 | 'codeskiller': 'https://code-gym-api.codingblocks.com/api/jwt/otp/verify', |
116 | | - 'iccwc': 'https://iccwc.codingblocks.com/api/jwt/otp/verify' |
| 116 | + 'cricket': 'https://cricket.codingblocks.com/api/jwt/otp/verify' |
117 | 117 | }, |
118 | 118 | verifyOtpMobile: { |
119 | 119 | 'hack': 'https://hack-api.codingblocks.com/api/v2/jwt/otp/verify', |
120 | 120 | 'online': 'https://online-api.codingblocks.com/api/v2/jwt/otp/mobile/verify', |
121 | 121 | 'hire': 'https://hire-api.codingblocks.com/login/otp/mobile/verify', |
122 | | - 'iccwc': 'https://iccwc.codingblocks.com/api/jwt/otp/verify' |
| 122 | + 'cricket': 'https://cricket.codingblocks.com/api/jwt/otp/verify' |
123 | 123 | } |
124 | 124 | } |
125 | 125 | |
|
130 | 130 | let errorMessage = null |
131 | 131 | let loginFlow = 'email' |
132 | 132 | let showLoginPrompt = localStorage.getItem('cb_login_prompt') === 'true' ? true : false |
133 | | - let googleLoginUrl = appSubdomain.includes('localhost') ? `http://localhost:3838/login/google/v2?redirect_uri=http://${appSubdomain}${pathname}&client=localhost&client_id=1234567890` : isStaging ? `https://account.codingblocks.xyz/login/google/v2?redirect_uri=https://${appSubdomain}.codingblocks.xyz${pathname}&client=${appSubdomain}-codingblocks&client_id=1` : `https://account.codingblocks.com/login/google/v2?redirect_uri=https://${appSubdomain}.codingblocks.com${pathname}&client=${appSubdomain === 'iccwc' ? 'cricket-quiz-iccwc23' : appSubdomain}-codingblocks&client_id=${clientIdMap[appSubdomain]}` |
134 | | - let facebookLoginUrl = appSubdomain.includes('localhost') ? `http://localhost:3838/login/facebook/v2?redirect_uri=http://${appSubdomain}${pathname}&client=localhost&client_id=1234567890` : isStaging ? `https://account.codingblocks.xyz/login/facebook/v2?redirect_uri=https://${appSubdomain}.codingblocks.xyz${pathname}&client=${appSubdomain}-codingblocks&client_id=1` : `https://account.codingblocks.com/login/facebook/v2?redirect_uri=https://${appSubdomain}.codingblocks.com${pathname}&client=${appSubdomain === 'iccwc' ? 'cricket-quiz-iccwc23': appSubdomain}-codingblocks&client_id=${clientIdMap[appSubdomain]}` |
| 133 | + let googleLoginUrl = appSubdomain.includes('localhost') ? `http://localhost:3838/login/google/v2?redirect_uri=http://${appSubdomain}${pathname}&client=localhost&client_id=1234567890` : isStaging ? `https://account.codingblocks.xyz/login/google/v2?redirect_uri=https://${appSubdomain}.codingblocks.xyz${pathname}&client=${appSubdomain}-codingblocks&client_id=1` : `https://account.codingblocks.com/login/google/v2?redirect_uri=https://${appSubdomain}.codingblocks.com${pathname}&client=${appSubdomain === 'cricket' ? 'cricket-quiz-iccwc23' : appSubdomain}-codingblocks&client_id=${clientIdMap[appSubdomain]}` |
| 134 | + let facebookLoginUrl = appSubdomain.includes('localhost') ? `http://localhost:3838/login/facebook/v2?redirect_uri=http://${appSubdomain}${pathname}&client=localhost&client_id=1234567890` : isStaging ? `https://account.codingblocks.xyz/login/facebook/v2?redirect_uri=https://${appSubdomain}.codingblocks.xyz${pathname}&client=${appSubdomain}-codingblocks&client_id=1` : `https://account.codingblocks.com/login/facebook/v2?redirect_uri=https://${appSubdomain}.codingblocks.com${pathname}&client=${appSubdomain === 'cricket' ? 'cricket-quiz-iccwc23': appSubdomain}-codingblocks&client_id=${clientIdMap[appSubdomain]}` |
135 | 135 | |
136 | 136 | async function sendOtp() { |
137 | 137 | errorMessage = null |
|
0 commit comments