changePhone method
Initiates a phone number change for the authenticated user. A phone change requires verification, so an email will be sent to the user which they must verify before the phone change takes effect.
Parameters:
newPhone
: The user's new phone number.- The language code for the phone change.
Returns:
A Future<MagicLink>
representing the magic link
Throws:
PassageError
Implementation
Future<MagicLink> changePhone(String newPhone, {String? language}) {
return PassageFlutterPlatform.instance.changePhone(newPhone, language);
}