RohanNero / block3d

An open-source authentication toolkit designed to streamline access control within Nextjs dapps.
https://block3d.gitbook.io/block3d
GNU General Public License v3.0
1 stars 0 forks source link

Add support for ENS names in `Simple` rule type #10

Open RohanNero opened 5 days ago

RohanNero commented 5 days ago

Overview

Instead of requiring addresses exclusively, we should add support for ENS names such as RohanNero.eth inside the addresses array.

Solution

We can add a check for strings including .eth at the end and make a function call to some ENS contract probably to get the associated address/owner.