Thinly slice potatoes and onions.
Beat eggs and season with salt and pepper.
Heat olive oil in a pan and sauté potatoes and onions.
Once the potatoes and onions are cooked, pour in the beaten eggs.
Cover with a lid and cook slowly over medium-low heat.
Flip once to cook the other side.
Cut into appropriate portions and serve.