Fix Impersonation Refresh Bug (#5679)

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
sean-brydonandPeer Richelsen authored and GitHub committed 2022-11-25 12:36:33 +00:00
1 parent 2a6dc340df
commit 93a14b190e
3 files changed
+14 -21

No files matched your search

@@ -16,9 +16,7 @@ function AdminView() {
onSubmit={(e) => {
e.preventDefault();
const enteredUsername = usernameRef.current?.value.toLowerCase();
signIn("impersonation-auth", { username: enteredUsername }).then((res) => {
console.log(res);
});
signIn("impersonation-auth", { username: enteredUsername });
}}>
<div className="flex items-center space-x-2">
<TextField