# Problem authenticating fcl transaction

**URL:** <https://forum.flow.com/t/problem-authenticating-fcl-transaction/2309>\
**Category:** FCL\
**Created:** [August 17, 2021, 6:59pm UTC](https://forum.flow.com/t/problem-authenticating-fcl-transaction/2309 "2021-08-17T18:59:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zach8302](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@zach8302](https://forum.flow.com/u/zach8302)\
**Post date:** [August 17, 2021, 6:59pm UTC](https://forum.flow.com/t/problem-authenticating-fcl-transaction/2309/1 "2021-08-17T18:59:22Z")

</div>

I am attempting to sign a transaction that initializes a user’s account on my next.js site.

fcl.transaction`TRANSACTION`,  
fcl.args([fcl.arg(user.addr, t.Address)]),  
fcl.proposer(fcl.authz),  
fcl.payer(fcl.authz),  
fcl.authorizations([fcl.authz]),  
fcl.limit(50)  
]);

I am receiving this error:

# Unhandled Runtime Error

Error: Declined: User rejected signature

##### Call Stack

###### eval

node\_modules/@onflow/fcl/dist/fcl.module.js (1:20867)

Am I not authenticating the transaction properly? Do I have to write my own authorization function (If so how would I do that)?

I would appreciate any guidance.

Thanks!

---

<div class="post-metadata">

**Author:** ![zach8302](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@zach8302](https://forum.flow.com/u/zach8302)\
**Post date:** [August 17, 2021, 8:14pm UTC](https://forum.flow.com/t/problem-authenticating-fcl-transaction/2309/2 "2021-08-17T20:14:43Z")

</div>

I changed it to:  
fcl.args([fcl.arg(user.addr, t.Address)]),  
fcl.proposer(user.authorization),  
fcl.payer(fetchProfile(“0x36dec30520f41e9d”).authorization),  
fcl.authorizations([user.authorization]),  
fcl.limit(50)

and now I’m getting:

# Unhandled Runtime Error

TypeError: Cannot read property ‘padStart’ of null

##### Call Stack

###### eval

node\_modules/@onflow/send/dist/send.module.js (1:4994)

---

<div class="post-metadata">

**Author:** ![zach8302](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@zach8302](https://forum.flow.com/u/zach8302)\
**Post date:** [August 18, 2021, 7:25pm UTC](https://forum.flow.com/t/problem-authenticating-fcl-transaction/2309/3 "2021-08-18T19:25:53Z")

</div>

Nevermind I was accidentally calling the transaction a bunch of times so it thought it was malicious!

---

<div class="post-metadata">

**Author:** ![zach8302](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@zach8302](https://forum.flow.com/u/zach8302)\
**Post date:** [August 18, 2021, 7:55pm UTC](https://forum.flow.com/t/problem-authenticating-fcl-transaction/2309/4 "2021-08-18T19:55:11Z")

</div>

Double never mind it still thinks it is a malicious request.

---

<div class="post-metadata">

**Author:** ![denny\_g](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@denny\_g](https://forum.flow.com/u/denny_g)\
**Post date:** [September 17, 2021, 12:41pm UTC](https://forum.flow.com/t/problem-authenticating-fcl-transaction/2309/5 "2021-09-17T12:41:59Z")

</div>

Hi @zach8302, I am getting same issue in the testnet, did you resolve it?
