logout method
Invalidates current user's access token and refresh token.
Implementation
Future<UserIdResponse> logout() async {
return ApiFactory.handleApiError(() async {
Response response = await _dio.post("/v1/user/logout");
return UserIdResponse.fromJson(response.data);
});
}