fix: removal of create nostr auth token
This commit is contained in:
parent
05e8a5dc4b
commit
b3954d387a
@ -45,20 +45,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)
|
|
||||||
|
|
||||||
store.dispatch(
|
store.dispatch(
|
||||||
setAuthState({
|
setAuthState({
|
||||||
loggedIn: true,
|
loggedIn: true,
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user