Moralis firebase auth ext is not working with Trezor hardware wallet

Moralis firebase auth ext is not working with Trezor hardware wallet


{“data”:{“networkType”:“evm”,“message”:“ wants you to sign in with your Ethereum account:\n0x1302E7f449339B711eDeC50f80dC6561051BB407\n\nTo authenticate please sign this message.\n\nURI:\nVersion: 1\nChain ID: 1\nNonce: GOllodDvk5ow0L6rl\nIssued At: 2023-05-10T14:30:01.711Z\nExpiration Time: 2023-05-10T14:45:00.955Z\nNot Before: 2023-05-10T14:30:00.955Z”,“signature”:“0xafb11c3884ca5fbe137692bec5dad91158dc16deaeabb417d8470f8e711e89903ff8a6fe7c3db2001d82d93a8411c36b083e7ec63fc655289a85d635c1f1dfc81c”}}

Please help


“textPayload”: “Invalid request, unable to process.”,
“insertId”: “645baf14000b8f8ea87b9bb8”,
“resource”: {
“type”: “cloud_function”,
“labels”: {
“project_id”: “arrland-prod”,
“function_name”: “ext-moralis-auth-5kgg-issueToken”,
“region”: “europe-west3”
“timestamp”: “2023-05-10T14:49:56.757646Z”,
“severity”: “ERROR”,
“labels”: {
“instance_id”: “00c61b117c11083f36d9fcc42c6cc66a600a6479d93c7c999cc4b2f95dec74c832c089cc7762706eb98479c3e076155344082657a30a7314d9”,
“execution_id”: “guctyf2j96qt”
“logName”: “projects/arrland-prod/logs/”,
“trace”: “projects/arrland-prod/traces/61a4ae6007e803b1ab5cdb0d3381916b”,
“receiveTimestamp”: “2023-05-10T14:49:56.971685309Z”

“textPayload”: “Request has invalid method. GET”,
“insertId”: “645baf4b000c12ce867a238c”,
“resource”: {
“type”: “cloud_function”,
“labels”: {
“region”: “europe-west3”,
“function_name”: “ext-moralis-auth-5kgg-issueToken”,
“project_id”: “arrland-prod”
“timestamp”: “2023-05-10T14:50:51.791246Z”,
“severity”: “WARNING”,
“labels”: {
“execution_id”: “7hnmp5zl0e7n”,
“instance_id”: “00c61b117cdfb681036064802bcf3d8a700e60b7461b9690be636f54e5eb814bfe22f63a420db52b51accd73191f09dad0ebf6560cdee347eb09”
“logName”: “projects/arrland-prod/logs/”,
“trace”: “projects/arrland-prod/traces/d8c249d00f9e6827713837d134c18f5c”,
“receiveTimestamp”: “2023-05-10T14:50:52.064579660Z”

It is working fine with MetaMask and you have issues only with the hardware wallet?

This is the error message from auth api?

Where form is this error?

Works fine with pure metamask.

The problem is with Trezor model T, imported to metamask

more logs

Challenge not found, Timeout may have exceeded
at RequestController.makeError (/workspace/node_modules/@moralisweb3/core/lib/controllers/RequestController/RequestController.js:119:20)
at RequestController. (/workspace/node_modules/@moralisweb3/core/lib/controllers/RequestController/RequestController.js:100:38)
at step (/workspace/node_modules/@moralisweb3/core/lib/controllers/RequestController/RequestController.js:44:23)
at Object.throw (/workspace/node_modules/@moralisweb3/core/lib/controllers/RequestController/RequestController.js:25:53)
at rejected (/workspace/node_modules/@moralisweb3/core/lib/controllers/RequestController/RequestController.js:17:65)
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
isMoralisError: true,
code: ‘C0006’,
details: {
status: 400,
response: {
status: 400,
statusText: ‘Bad Request’,
headers: [Object],
config: [Object],
request: [ClientRequest],
data: [Object]
cause: [AxiosError: Request failed with status code 400] {
config: {
transitional: [Object],
adapter: [Function: httpAdapter],
transformRequest: [Array],
transformResponse: [Array],
timeout: 10000,
xsrfCookieName: ‘XSRF-TOKEN’,
xsrfHeaderName: ‘X-XSRF-TOKEN’,
maxContentLength: -1,
maxBodyLength: -1,
env: [Object],
validateStatus: [Function: validateStatus],
headers: [Object],
url: ‘’,
params: {},
method: ‘post’,
data: ‘{“message”:“ wants you to sign in with your Ethereum account:\n0xaA749A1EA30e12A192f7267a8D0DD2ae40726A0e\n\nTo authenticate please sign this message.\n\nURI:\nVersion: 1\nChain ID: 1\nNonce: 5ahnLEDEwiYfX6ZWG\nIssued At: 2023-05-10T14:34:14.207Z\nExpiration Time: 2023-05-10T14:49:13.458Z\nNot Before: 2023-05-10T14:34:13.458Z”,“signature”:“0x946b1e193d7bf27e2bf445fb939ee95641f60ff40ec75bacb14adda6256439f006349149413dbfb42c3b241f8b4e9fb877f73a4e87c4678741ff2c16c6d2da3a1b”}’
request: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
… [message truncated due to size]

I think issue is with timeout, works If I confirm on trezor very fast

1 Like

This is a different error, you can increase the timeout value

How can I manually set the timeout value?

we don’t have this support in the firebase extension configuration now, to change that timeout value, it is hardcoded to 15 seconds, we created a feature request related to that timeout value for the firebase extension

I think it should be changed to 60 sec, as many people are reporting they need to login 5 times with metamask in order to login to our app

We plan to update it to 60 seconds, thanks for the feedback.

But if people use it on ledger hardware wallet or mobile then 60 s could be too small too. Did you tried to use this on Ledger, 60 s could be time to put pin on those small buttons.

When it will be updated ? we will have sale on the app soon

it was updated now on 0.1.6 version to 60 seconds


we did an update here

maybe something more is needed

how to make the update ?

Hi @CryptoGartus

Devs confirmed that it was published successfully. Can you try updating the extension using the firebase cli?

How to update it using firebase cli ?

Since you already installed the auth extension you can use the ext:update command followed by the extension name.

Thank you, updated. Will see how it will work now