fix(login): update login method before using nostrController instance
This commit is contained in:
parent
1909534079
commit
1f980201dd
@ -58,12 +58,12 @@ export const MainLayout = () => {
|
||||
}
|
||||
|
||||
const login = useCallback(async () => {
|
||||
dispatch(updateLoginMethod(LoginMethod.nostrLogin))
|
||||
|
||||
const nostrController = NostrController.getInstance()
|
||||
const authController = new AuthController()
|
||||
const pubkey = await nostrController.capturePublicKey()
|
||||
|
||||
dispatch(updateLoginMethod(LoginMethod.nostrLogin))
|
||||
|
||||
const redirectPath =
|
||||
await authController.authAndGetMetadataAndRelaysMap(pubkey)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user