Developer Questions

Ask a Question
Back to All

How to check auth status with universal Xumm SDK?

I'm creating an auth flow using the Xumm universal SDK in Web3/Browser mode (PKCE). How do I check if the user is authorized?

  • XummSDK.user always contains a value
  • XummSDK.ping() doesn't return a resolved value as the docs say it does
  • I found an example calling XummSDK.state(), but that doesn't seem to exist
  • I see useful looking functions and properties under XummSDK.environment, but don't know which to use

It would be helpful to have something like XummSDK.isAuthoirized (boolean)

Recommendation? Thanks!

Julian