Facing verification failed issue and found many similar issues on StackExchange but couldn't solve my problem so posting here.
I have deployed a staking program on devnet. It initiates spl_token transfer from user's token account to its own token account.
After connecting wallet, when frontend react app calls the rust program for staking spl tokens, I get signature verification error:
{"code":-32003,"message":"failed to send transaction: Transaction simulation failed: Error processing Instruction 0: Cross-program invocation with unauthorized signer or writable account"}
You can try to run the client after setting solana config to devnet.
I checked the documentation and also discussed the issue with peers. Unfortunately the issue persisted. All help is appreciated!