Correcting some bugs and working on responsive.

This commit is contained in:
charles-gauthereau
2024-11-23 21:15:14 +01:00
parent b22b8a9286
commit d1e98eaa11
3 changed files with 8 additions and 3 deletions
+1
View File
@@ -4,6 +4,7 @@ export function generateEdgeKey(serverUrl: string, agentId: string): string {
serverUrl,
agentId,
};
console.log(edgeKeyData);
const edgeKeyJson = JSON.stringify(edgeKeyData);
const edgeKeyBuffer = Buffer.from(edgeKeyJson, 'utf-8');
const edgeKeyBase64 = edgeKeyBuffer.toString('base64').replace(/=+$/, '').replace(/\+/g, '-').replace(/\//g, '_');