Checking A User's Status

After a user has authenticated, you'll also want to check their status to determine if they've remotely cleared their Session. To check this status, use the isAuthorized function which will return a boolean response indicating if the user is still authorized for the session or whether it has ended.

Definition

isAuthorized(authRequest)

Parameters

authRequest:string Unique request identifier

Example

AuthenticationManager.getInstance().isAuthorized(mAuthRequest, new AuthenticationManager.PollCallback() {
    @Override
    public void wasSuccess(boolean authorized) {
        // success
    }
    @Override
    public void wasFailure(String errorMessage, String errorCode) {
        // failure
    }
});

Returns

authorized:Boolean indicating whether the user is still authorized for the session or whether the session has ended

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. ×