Closed SamSamskies closed 1 year ago
user should not be redirected to login screen if they have a nostr private stored in secure storage.
steps to recreate:
bug is most likely here: https://github.com/wavlake/mobile/blob/94b4e75b61ada239ea89f50db58f005718936ae9/app/(drawer)/(tabs)/_layout.tsx#L32-L45
it should short circuit on line 33, but it doesn't for some reason. probably better to check if pubkey available directly in the async function instead of using the useAuth hook.
on 2nd thought, if there is a stored private key on 1st app launch, we should delete it and make user login again.
user should not be redirected to login screen if they have a nostr private stored in secure storage.
steps to recreate:
bug is most likely here: https://github.com/wavlake/mobile/blob/94b4e75b61ada239ea89f50db58f005718936ae9/app/(drawer)/(tabs)/_layout.tsx#L32-L45
it should short circuit on line 33, but it doesn't for some reason. probably better to check if pubkey available directly in the async function instead of using the useAuth hook.