A prebuilt, Warrant-hosted page where users can manage their own roles & permissions.
1import { Client as WarrantClient } from "@warrantdev/warrant-node";2
3const warrantClient = new WarrantClient("{{ apiKey }}");4const sessionUrl = await warrantClient.createSelfServiceSession(5 userId,6 "https://your-website.com/account"7);8
9// Redirect to sessionUrl
1<form action="/create-self-service-session" method="POST">2 <button type="submit">Manage Permissions</button>3</form>