CredentialsUnauthenticate Method |
Unauthenticates the user (deletes their authenticated device token).
Namespace:
NetQuarry.Web.API
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static void Unauthenticate(
IAppContext appCxt,
bool removeAllDeviceTokensOfUser = true,
string deviceToken = null,
string userGUID = null
)
Public Shared Sub Unauthenticate (
appCxt As IAppContext,
Optional removeAllDeviceTokensOfUser As Boolean = true,
Optional deviceToken As String = Nothing,
Optional userGUID As String = Nothing
)
Parameters
- appCxt
- Type: NetQuarryIAppContext
The application context. - removeAllDeviceTokensOfUser (Optional)
- Type: SystemBoolean
Default true. If true, remove all device tokens of user. Else remove ONE device token. - deviceToken (Optional)
- Type: SystemString
If current user admin + removeAllDeviceTokensOfUser false + deviceToken set: logout device with deviceToken (doesn't have to belong to current user). - userGUID (Optional)
- Type: SystemString
If current user admin + removeAllDeviceTokensOfUser true + userGUID set: logout all devices belonging to user with userGUID (doesn't have to belong to current user).
See Also