wx.logout(Object object)
Clear the system login. After logging out, you will not be able to log out by calling wx.getMiniProgramCode 、wx.getIdentityCode Get 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 |
-1 | system error |
sample code