Passport SDK v5.0
  • 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
    • Magic
    • Ethers.js
    • Installation
    • Usage
    • Passport Instance Properties
    • Passport Static Properties
    • Modes
    • Supported query params
  • Transaction UI v3.0 (now part of Passport)
    • Magic
    • Ethers.js
    • Installation
    • Usage
    • Apple Pay
    • Google Pay
    • Methods
    • Events
  • Appendix II: MetaMembership Contract Access
  • Appendix III: Ledger Contract Access
  • Appendix IV: Decentralized Commerce Configuration
Powered by GitBook
LogoLogo

©2023 Credenza. All rights reserved.

On this page
  • Account Information Access
  • Blockchain Wallet Access
  1. Post-Login Capabilities

Account Information Access

PreviousPost-Login CapabilitiesNextBlockchain Wallet Access

Last updated 2 years ago

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 infer both the email address (if the user permits), 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. To access the attributes, just call the appropriate attribute:

     if (passport.user!=null){
          console.log(passport.user.email))
          console.log(passport.user.address)) //this is a change from v1 (formerly EthAddress)
        }

Blockchain Wallet Access