refactor: remove profile card component

This commit is contained in:
Prad Nukala
2024-12-09 15:21:02 -05:00
parent 98bdf92d70
commit bbb093b171
6 changed files with 116 additions and 180 deletions
-5
View File
@@ -43,11 +43,6 @@ templ passkeyDropzone(addr string, userHandle string, challenge string) {
</sl-button>
}
script base64URLEncode(buffer) {
const base64 = btoa(String.fromCharCode(...new Uint8Array(buffer)));
return base64.replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
}
script createPasskey(userId string, userHandle string, challenge string) {
const publicKey = {
challenge: Uint8Array.from(challenge, (c) => c.charCodeAt(0)),