# wx.checkIdentitySession(Object object)

Check the system login state, during the system login state in effect, you can call the wx.getMiniProgramCode wx.getIdentityCode Silently obtains the login credentials.

# parameter

# Object object

attribute type Default value Required Introductions
success function no Interface calls a successful callback function
fail function no Interface to call a failed callback function
complete function no The callback function at the end of an interface call

# object.fail callback

# parameter
# Object res
attribute type Introductions
errCode number Error code
errMsg string Error message

**res.errCode **

errCode Introductions

# sample code

wx.checkIdentitySession({
  success () {
      console.log('system login status in effect. ')
  },
  fail (res) {
      console.log('system login failed. ')
  }
})