How to make a Procedural shore mask for landscapes?

So i am working on a fully procedural landscape and i need a procedural way to create shore with sand material on the island

but i didnt find any tutorials covering the topic… any one knows the perfect procedure to make one?