|
|
|
@ -32,6 +32,8 @@ function logInNostr(pubkey: string, onboard = false) {
|
|
|
|
|
dispatch(startOnboarding());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dispatch(setNostrPubkey(undefined));
|
|
|
|
|
|
|
|
|
|
const { access_token } = dispatch(authLoggedIn(token));
|
|
|
|
|
return await dispatch(verifyCredentials(access_token as string));
|
|
|
|
|
};
|
|
|
|
@ -48,7 +50,7 @@ function nostrExtensionLogIn() {
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function setNostrPubkey(pubkey: string) {
|
|
|
|
|
function setNostrPubkey(pubkey: string | undefined) {
|
|
|
|
|
return {
|
|
|
|
|
type: NOSTR_PUBKEY_SET,
|
|
|
|
|
pubkey,
|
|
|
|
|