Quickstart
This guide shows you how to get started creating and managing a Wallet with our API
Create an Account
Create your account on Inrupt's PodSpaces
Save your login credentials securely
Generate Client Credentials
For simplicity in these first examples, we will interact with the Wallet directly from a backend service via OAuth Client Credentials. User-login via Solid OIDC is covered in Authentication.
Generate client credentials on the Application Registration page
Use the client credential to create a session.
async function initializeAndLoginSession() {
const session = new Session();
await session.login({
clientId: process.env.CLIENT_ID,
clientSecret: process.env.CLIENT_SECRET,
oidcIssuer: "https://login.inrupt.com",
tokenType: "Bearer",
});
if (session.info.isLoggedIn && session.info.webId) {
console.log("Session logged in successfully with WebID");
return session;
} else {
console.error("User is not logged in");
return null;
}
}Add Data to the Wallet
Get the Wallet Data
Delete Data from the Wallet
Last updated