Log Out a User

If a user logs out from within your app, you should let LaunchKey know so we can remove your app from their Authorization List. To log out a user, call the logout() function. This will return an IsLoggedOutResponse response indicating if the user is logged out.

Definition

logout(authRequest)

Parameters

authRequest:string Unique request identifier returned from authorize()

Example

IsLoggedOutResponse response = await LKAuthenticationManager.Instance.logout(_authRequest) as IsLoggedOutResponse;

if (response.LoggedOut)
{
    //logged out
}

Note

IsLoggedOutResponse is a subclass of LaunchKeyResponse which also contains error information if an error was triggered. The class definition for LaunchKeyResponse looks like:

Example

public class LaunchKeyResponse
{
    public bool Successful { get; set; }
    public int StatusCode { get; set; }
    public string Message { get; set; }
    public string MessageCode { get; set; }

}

User Contributed

LaunchKey links to user contributed code as a resource to its community. LaunchKey does not in any way guarantee or warrant the quality and security of these code bases. User contributed code is supported by the creators. If you do find a link from the site to user contributed code that is malicious or inappropriate in any way, please report that link to LaunchKey immediately and we will investigate the claim. Submit any issue to LaunchKey support at https://launchkey.com./support. ×