hello can anyone help me integration medplum sign ...
# support
a
when i am sigining in with uer email and password and sending request to cognito and i am getting access token id token etc and also when iam passing the access token to this medplum method MedplumClient.exchangeExternalAccessToken() const medplum = new MedplumClient({ baseUrl: MEDPLUM_BASE_URL, clientId: MEDPLUM_CLIENT_ID, }); // Exchange external token await medplum.exchangeExternalAccessToken(EXTERNAL_ACCESS_TOKEN); getting this error { "error": "invalid_request", "error_description": "Failed to verify code - check your identity provider configuration" } what could be solution of this ?
s
Could be the token URL - have you checked it's reachable from medplum? Set the log level to warn to see the response or if it's something else unhandled https://github.com/medplum/medplum/blob/8e71df2f93d235670411f34854395d0b96b14ade/packages/server/src/auth/external.ts#L226
76 Views