Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth Token can only be used once #27

Open
CharlesPlantePulsar opened this issue Aug 8, 2024 · 0 comments
Open

OAuth Token can only be used once #27

CharlesPlantePulsar opened this issue Aug 8, 2024 · 0 comments

Comments

@CharlesPlantePulsar
Copy link

OAuth Token can only be used once

rivate void getCloverAuth() {
  new AsyncTask<Void, Void, CloverAuth.AuthResult>() {
    @Override
    protected CloverAuth.AuthResult doInBackground(Void... params) {
      try {
        Context context = getApplicationContext();
        return CloverAuth.authenticate(context);
      } catch (Exception e) {
        Log.e(TAG, "Error authenticating", e);
      }
      return null;
    }

    @Override
    protected void onPostExecute(CloverAuth.AuthResult result) {
      cloverAuth = result;
      if (cloverAuth != null && cloverAuth.authToken !=null) {
        mToken.setText("Token: " + cloverAuth.authToken);
      } else {
        mToken.setText("Error retrieving token."));
      }
    }
    }.execute();
  }
}

Token received for this method will only change if we reinstall the app.

How can we verify that device authentification through clover ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant