0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix: remove the plus sign in front of the phone number (#5801)

This commit is contained in:
Kamto 2024-04-29 15:35:25 +08:00 committed by GitHub
parent 24acae8709
commit 224723413a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -153,7 +153,7 @@ export function getUserInfo(getConfig: GetConnectorConfig): GetUserInfo {
avatar,
email: conditional(email),
userId: conditional(user_id),
phone: conditional(mobile),
phone: conditional(mobile?.replace('+', '')),
rawData: jsonGuard.parse(response.body),
};
} catch (error: unknown) {