Restrict Access to Specific Wallets
A guide to restricting access based on a list of allowed wallet addresses
Last updated
A guide to restricting access based on a list of allowed wallet addresses
Last updated
Before continuing make sure you've followed the
You can use Picket to gate access by a list of allowed wallets. All you need to do is pass the allowedWallets
requirements to the login()
function.
You successfully restricted access to specific wallets
The returned access token can now act as secure proof of wallet ownership until expiration. It can be passed server side and verified there in order to restrict resources to specific wallets
If both allowedWallets
and token ownership requirements are passed to the login
function, then the user will be granted access if they either are on the allowed wallets list or meet the token ownership requirements.
Allowed wallet lists can be used in combination with .
Congrats ๐ your user is now successfully logged in. After authenticated/authorizing a user, you get an access token. You can use this access token to make secure requests to your backend. Read more in the .