Accessing Accounts

User accounts are used in a variety of contexts in NEAR, including as identifiers and for signing transactions. Once login successfully, you'll be able to access to the accountId and account instance.

Current Account ID

You can get the logged in account ID via the getAccountId() method.
const accountId = window.near.getAccountId();

Use Account Instance

[Work In-Progress] You can also get access to the current account, and use its interface directly. The account is an instance of the account object in near-api-js . The usage can be found in the documentation here.
const account = window.near.account();
await account.sendMoney(
"receiver-account.testnet", // receiver account
"1000000000000000000000000" // amount in yoctoNEAR