aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelissa Zhang <mzhang19096@gmail.com>2020-07-13 12:14:56 -0700
committerMelissa Zhang <mzhang19096@gmail.com>2020-07-13 12:14:56 -0700
commiteb6e1b6705560d6fe94cb5787839b9138ab4b979 (patch)
tree316f125a841b727fa65d4c15bb80e2527debb3fe
parent8594b7e8f3058a8d441413a033aee311ee59bdfd (diff)
fixed authentication UI
-rw-r--r--src/client/apis/HypothesisAuthenticationManager.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/apis/HypothesisAuthenticationManager.tsx b/src/client/apis/HypothesisAuthenticationManager.tsx
index f995dee3b..9a6d78bac 100644
--- a/src/client/apis/HypothesisAuthenticationManager.tsx
+++ b/src/client/apis/HypothesisAuthenticationManager.tsx
@@ -53,7 +53,7 @@ export default class HypothesisAuthenticationManager extends React.Component<{}>
Networking.PostToServer("/writeHypothesisAccessToken", { authenticationCode, hypothesisUsername });
runInAction(() => {
this.success = true;
- this.credentials = response;
+ this.credentials = { username: hypothesisUsername, apiKey: authenticationCode! };
});
this.resetState();
resolve(authenticationCode);