Signature Grant
Overview
This article describes how you would verify an authenticated session's wallet address when using the Signature Grant Type.
Example Use Case
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.
Getting Started
This tutorial assumes you are using the Connect Widget.
The first thing you will need to do is create a Developer App of type Signature Grant. This will give you a clientId
which will be used on your frontend via the Connect Widget, which handles client-side authentication. Please follow the tutorial for the Connect Widget prior to continuing.
Verifying an authenticated session
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.
Reading the frontend session token
There are two ways to retrieve the frontend session token
Method 1: Via the Manifold Ethereum Provider
Method 2: Via the m-authenticated
event
m-authenticated
eventServer-Side Validation
Once 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:
Last updated