Merge branch 'verify-clear-after' into 'main'

Clear meta.pubkey after verify_credentials

See merge request soapbox-pub/soapbox!3180
This commit is contained in:
Alex Gleason 2024-10-23 01:16:47 +00:00
commit 242a6ace1a
1 changed files with 3 additions and 3 deletions

View File

@ -27,10 +27,10 @@ function logInNostr(pubkey: string) {
secret, secret,
})); }));
dispatch(setNostrPubkey(undefined));
const { access_token } = dispatch(authLoggedIn(token)); const { access_token } = dispatch(authLoggedIn(token));
return await dispatch(verifyCredentials(access_token as string)); await dispatch(verifyCredentials(access_token as string));
dispatch(setNostrPubkey(undefined));
}; };
} }