reauthenticate method
Sends a reauthentication OTP to the user's email or phone number.
Requires the user to be signed-in.
Implementation
Future<void> reauthenticate() async {
final session = currentSession;
if (session == null) {
throw AuthException('Not logged in.');
}
final options =
GotrueRequestOptions(headers: headers, jwt: session.accessToken);
await _fetch.request(
'$_url/reauthenticate',
RequestMethodType.get,
options: options,
);
}