Check A User's Status

After a user has authorized a session, you'll want to check their status to determine if they've remotely logged out. To check this status, use the isAuthorized() function which will return an IsAuthorizedResponse object indicating if the user is still authorized for the session or whether it has ended, in which case you should end their session.




authRequest:string Unique request identifier returned from authorize()


IsAuthorizedResponse response = await LKAuthenticationManager.Instance.isAuthorized(_authRequest) as IsAuthorizedResponse;

if (response.Authorized)
  // still authorized


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


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 ×