๐Working with Access Tokens
You've logged your user in, you have their access token, what's next?
Using Access Tokens
Once you've successfully authenticated a wallet you will have an access token. An access token acts as a secure guarantee of an authenticated wallet until expiration without the need for additional user interactions.
This allows you build and interact with APIs that restrict content based on a user's wallet address. On the client-side, you can include a user's access token API requests, and server-side, you can validate any received access tokens to ensure the request came from a user who owns the wallet address.
1. Include the Access Token in API Requests
2. Validate the Access Token Server-Side
Server-side libraries, like picket-node
, require a secret API key and must only be used in a secure, server-side environment.
Server-Side SDKs
Picket is an API-first platform. You can always use our REST APIs server-side in any language or framework of your choice; however, we offer official Picket libraries for common languages.
Node.js Library - picket-nodeGo Library - picket-goPython Library - picket-pythonDon't see your preferred language? Let us know at team@picketapi.com
Last updated