Passport SDK v8
  • Overview
  • Account Lifecycle
  • Integration
    • Client Side Enablement
    • Credenza Presence (Optional Visual Elements)
    • Account Provisioning (Sign-up)
      • New Authentication System
      • Existing Authentication System - New Customer
      • Existing Authentication System - Existing Customer
  • Passport Subsequent Logins
  • Post-Login Capabilities
    • Account Information Access
    • Blockchain Wallet Access
  • Smart Contract Interactions
    • Instantiating The Contract Object (Server-Side)
    • Instantiating The Contract Object (Client-side)
    • Calling Contracts
  • Monetary Transactions
  • Appendix I: Passport Configuration Options
    • Credenza Core Web SDK (Auth)
    • Ethers.js
    • Installation
    • Usage
    • Passport Instance Properties
    • Passport Static Properties
    • Modes
  • Appendix IA: Transaction UI v3.0 (now part of Passport)
    • Installation
    • Usage
    • Apple Pay
    • Google Pay
    • Methods
    • Events
  • Appendix II: MetaMembership Contract Access
  • Appendix III: Ledger Contract Access
  • Appendix IV: Decentralized Commerce Configuration
  • Appendix V: Migration From Previous Passports
Powered by GitBook
LogoLogo

©2023 Credenza. All rights reserved.

On this page
  1. Post-Login Capabilities

Account Information Access

Account Information Access

After a user has logged in, the Passport object becomes far more powerful. The client application can now access a host of additional features associated with acting on behalf of the user on the blockchain. But before we even get to the blockchain, let’s talk about some of the additional attributes that are available upon login.

From this object, the client site can obtain user metadata and the relevant blockchain address. Having this address as well as the associated network will allow any client to be able to access the list of NFTs contained in the wallet. For read access, no other code is necessary.

     if (passport.user!=null){
          await passport.getUser(). //gets the metadata associated with user
          await passport.getAddress(). //gets the address associated with user
        }

PreviousPost-Login CapabilitiesNextBlockchain Wallet Access

Last updated 1 year ago