Pre papulate country in registration form (#251)

- get country code based on IP address from server
- set country code in country field

VAN-366
This commit is contained in:
Mubbshar Anwar
2021-04-23 20:08:50 +05:00
committed by Waheed Ahmed
parent 296f4e07ce
commit bd470f892c
3 changed files with 43 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ export async function getThirdPartyAuthContext(urlParams) {
const { data } = await getAuthenticatedHttpClient()
.get(
`${getConfig().LMS_BASE_URL}/api/third_party_auth_context`,
`${getConfig().LMS_BASE_URL}/api/mfe_context`,
requestConfig,
)
.catch((e) => {