{ "opencollection": "1.0.0", "info": { "name": "Unlock Locksmith Applications Auth API", "version": "2" }, "items": [ { "info": { "name": "Auth", "type": "folder" }, "items": [ { "info": { "name": "nonce", "type": "http" }, "http": { "method": "GET", "url": "https://locksmith.unlock-protocol.com/v2/auth/nonce" }, "docs": "Provide a unique nonce for using in sign in with ethereum" }, { "info": { "name": "login", "type": "http" }, "http": { "method": "POST", "url": "https://locksmith.unlock-protocol.com/v2/auth/login", "body": { "type": "json", "data": "{}" } }, "docs": "Login as a user using Sign in with Ethereum message signed by the wallet address." }, { "info": { "name": "loginWithPrivy", "type": "http" }, "http": { "method": "POST", "url": "https://locksmith.unlock-protocol.com/v2/auth/privy", "body": { "type": "json", "data": "{}" } }, "docs": "Verify an access token using Privy's library and authenticate the user" }, { "info": { "name": "logout", "type": "http" }, "http": { "method": "POST", "url": "https://locksmith.unlock-protocol.com/v2/auth/logout", "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Logout from locksmith. This will invalidate all your session tokens." }, { "info": { "name": "revoke", "type": "http" }, "http": { "method": "POST", "url": "https://locksmith.unlock-protocol.com/v2/auth/revoke", "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Invalidate a session." }, { "info": { "name": "user", "type": "http" }, "http": { "method": "GET", "url": "https://locksmith.unlock-protocol.com/v2/auth/user", "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get user details." } ] } ], "bundled": true }