{"id":21961669,"url":"https://github.com/cmllib/sessionverifierserver","last_synced_at":"2026-05-16T21:12:30.327Z","repository":{"id":216239838,"uuid":"740488643","full_name":"CmlLib/SessionVerifierServer","owner":"CmlLib","description":"NodeJS server for verifying a Minecraft session","archived":false,"fork":false,"pushed_at":"2024-01-09T05:55:48.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-07T04:08:19.451Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CmlLib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-08T12:59:08.000Z","updated_at":"2024-01-08T12:59:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"d40d9b88-8178-4566-95c5-3a39eb26c55f","html_url":"https://github.com/CmlLib/SessionVerifierServer","commit_stats":null,"previous_names":["cmllib/sessionverifierserver"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CmlLib/SessionVerifierServer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CmlLib%2FSessionVerifierServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CmlLib%2FSessionVerifierServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CmlLib%2FSessionVerifierServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CmlLib%2FSessionVerifierServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CmlLib","download_url":"https://codeload.github.com/CmlLib/SessionVerifierServer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CmlLib%2FSessionVerifierServer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264010949,"owners_count":23543716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-29T10:17:20.516Z","updated_at":"2026-05-16T21:12:25.283Z","avatar_url":"https://github.com/CmlLib.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SessionVerifierServer\n\nverify a user's minecraft session\n\n[node-minecraft-protocol encrypt.js](https://github.com/PrismarineJS/node-minecraft-protocol/blob/master/src/client/encrypt.js)\n\n[node-minecraft-protocol login.js](https://github.com/PrismarineJS/node-minecraft-protocol/blob/master/src/server/login.js)\n\n[node-yggdrasil](https://github.com/PrismarineJS/node-yggdrasil)\n\n[Protocol#Login](https://wiki.vg/Protocol#Login)\n\n[Protocol Encryption](https://wiki.vg/Protocol_Encryption)\n\n## API\n\n### GET /startlogin\n\nResponse\n\n| Property    | Type   | Description                                       |\n|-------------|--------|---------------------------------------------------|\n| serverId    | string | server id                                         |\n| publicKey   | string | public key formatted in DER and encoded in base64 |\n| verifyToken | string | verify token encoded in base64                    |\n\n### POST /verifysecret\n\nRequest\n\n| Property     | Type   | Description                     |\n|--------------|--------|---------------------------------|\n| username     | string | username                        |\n| sharedSecret | string | shared secret encoded in base64 |\n\nResponse\n\n| Property | Type   | Description |\n|----------|--------|-------------|\n| username | string |             |\n| uuid     | string |             |\n\n### POST /verifytoken\n\nRequest\n\n| Property    | Type   | Description |\n|-------------|--------|-------------|\n| accessToken | string |             |\n| uuid        | string |             |\n| username    | string |             |\n\nResponse\n\n| Property | Type   | Description |\n|----------|--------|-------------|\n| username | string |             |\n| uuid     | string |             |\n\n## Configuration\n\n/src/config-prod.ts\n\n```ts\nimport { Config } from \"./config\";\n\nconst prod: Config = {\n    port: 23333,\n    serverId: 'serverid',\n    serverKeyPem: `\n-----BEGIN RSA PRIVATE KEY-----\n(pem)\n-----END RSA PRIVATE KEY-----`\n}\n\nexport default prod;\n```\n\n| Property     | Type   | Description      |\n|--------------|--------|------------------|\n| port         | number | http server port |\n| serverId     | string | [Server ID String](https://wiki.vg/Protocol_Encryption#Server_ID_String) |\n| serverKeyPem | string | RSA private key, formatted in PEM with PKCS1 padding, used for encrypting and decrypting shared secrets |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmllib%2Fsessionverifierserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmllib%2Fsessionverifierserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmllib%2Fsessionverifierserver/lists"}