Find Frequently Asked Questions about Particle Auth.
How can I ensure the signature result is consistent each time?
uniq
parameter. This parameter ensures that the signature remains consistent every time you sign the same message.How can I silently log in and sign messages/transactions?
How do I determine if an account is new?
UserInfo
, either through the connect
method or via the userInfo
object from useAuthCore
, a field provide the relevant information:created_at
field indicates the timestamp when the account was created.How can I check the status of the main password and payment password settings?
userInfo
object contains a security_account
property, which includes two fields:has_set_master_password
: Indicates if the master password is set.has_set_payment_password
: Indicates if the payment password is set.Why does Google login prompt me that I do not comply with the policy?
How to add support for a new EVM chain?
What are the options for chain_name returned by the backend API?
chain_name
values returned by the backend API include evm_chain
and solana
. Additionally, for Tron, the chain_name
is also represented as evm_chain
.These values indicate the blockchain network associated with the account.How do I fix webpack 5 polyfills error when creating a new React application?
create-react-app
version 5 or above, you might encounter issues due to the lack of NodeJS polyfills, which are no longer included by default. To fix this, you can use react-app-rewired
and install the necessary polyfill modules.CRA
, install react-app-rewired
and the required polyfill packages.
If you’re using Yarn:
config-overrides.js
file in the root of your project and add the necessary configuration to include the missing polyfills. This file will override the default Webpack configuration provided by create-react-app
.
scripts
section in your package.json
to use react-app-rewired
instead of the default react-scripts
:
How do I fix the '__wbindgen_add_to_stack_pointer' error in a React app using Vite?
"Cannot read properties of undefined (reading '__wbindgen_add_to_stack_pointer')"
in your React app using Vite, it likely relates to issues with loading a WebAssembly (Wasm) module.To resolve this, you can use the Particle Network WASM plugin with a customized Vite configuration. Here’s how to set it up:vite.config.ts
: Add the following configuration to correctly handle the WebAssembly module in development mode:__wbindgen_add_to_stack_pointer
error from occurring.