Skip to content

Commit

Permalink
Replaced user token by backend token in feedback call
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-lamoso committed Jan 5, 2021
1 parent ddb6b78 commit fbcdb93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions alice/onboarding/onboarding_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,10 @@ def add_user_feedback(
"""
print_intro("add_user_feedback", verbose=verbose)

user_token = self.auth.create_user_token(user_id).unwrap()
print_token("user_token", user_token, verbose=verbose)
backend_token = self.auth.create_backend_token(user_id).unwrap()
print_token("backend_token_with_user", backend_token, verbose=verbose)

headers = self._auth_headers(user_token)
headers = self._auth_headers(backend_token)

data = {
"document_id": document_id,
Expand Down

0 comments on commit fbcdb93

Please sign in to comment.