signUp
A convenience method that calls and is equivalent to fcl.authenticate()
.
This method can only be used in web browsers.
Import
You can import the entire package and access the function:
_10import * as fcl from "@onflow/fcl"_10_10fcl.signUp(opts)
Or import directly the specific function:
_10import { signUp } from "@onflow/fcl"_10_10signUp(opts)
Usage
_10import * as fcl from '@onflow/fcl';_10fcl.config()_10 .put('accessNode.api', 'https://rest-testnet.onflow.org')_10 .put('discovery.wallet', 'https://fcl-discovery.onflow.org/testnet/authn');_10_10// User clicks sign up button_10fcl.signUp();
Parameters
opts
(optional)
- Type:
{}
- Description: Authentication options passed to authenticate method
Returns
Promise that resolves to the authenticated CurrentUser object or undefined