Signature Grant
Last updated
Was this helpful?
Last updated
Was this helpful?
This article describes how you would verify an authenticated session's wallet address when using the .
Accessing/modifying private user data A user is authenticated on the frontend and wants to view or modify private user data. The server should independently verify the authenticated wallet address prior to allowing access to this data.
The first thing you will need to do is create a of type Signature Grant. This will give you a clientId
which will be used on your frontend via the , which handles client-side authentication. Please follow the tutorial for the prior to continuing.
In order to verify an authenticated session, you will need to read the session token on your frontend application and pass it back to your backend server.
There are two ways to retrieve the frontend session token
m-authenticated
eventOnce you retrieve the session token on the frontend client, pass it back to your server endpoint.
Here is an example in how to verify a session token in an Express backend server: