Placeholder avatar is incosistent across components #39

Merged
s merged 9 commits from issue-27 into main 2024-05-16 08:58:11 +00:00
2 changed files with 4 additions and 14 deletions
Showing only changes of commit 60a7140c6a - Show all commits

View File

@ -40,20 +40,6 @@ export class AuthController {
console.error('Error occurred while finding metadata', err) console.error('Error occurred while finding metadata', err)
}) })
// Nostr uses unix timestamps
const timestamp = Math.floor(Date.now() / 1000)
const { hostname } = window.location
const authEvent: EventTemplate = {
kind: 1,
tags: [],
content: `${hostname}-${timestamp}`,
created_at: timestamp
}
const signedAuthEvent = await this.nostrController.signEvent(authEvent)
this.createAndSaveAuthToken(signedAuthEvent)
m marked this conversation as resolved Outdated
Outdated
Review

removal of this code will allow you to login as any user. Just enter npub/nip05 and you'll be logged in as that user.

removal of this code will allow you to login as any user. Just enter npub/nip05 and you'll be logged in as that user.
store.dispatch( store.dispatch(
setAuthState({ setAuthState({
loggedIn: true, loggedIn: true,

View File

@ -388,6 +388,10 @@ export const VerifyPage = () => {
setIsLoading(false) setIsLoading(false)
} }
/**
*
* @returns exported.zip including signed files and meta info (about signers and viewers)
*/
const handleExport = async () => { const handleExport = async () => {
if (!meta || !zip || !usersPubkey) return if (!meta || !zip || !usersPubkey) return