diff options
author | Sebastian <sebasjm@gmail.com> | 2024-03-08 12:19:20 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-03-08 12:19:20 -0300 |
commit | e0e82cdf07930d766081e42203c5a4e66d43191f (patch) | |
tree | 0c0b96cb88d701c7b19b0ef34ec1c67255a2f49e /packages/demobank-ui/src/pages/LoginForm.tsx | |
parent | b3ae213bc5987fbb6a2ce5c08d626f9f65508b03 (diff) | |
download | wallet-core-e0e82cdf07930d766081e42203c5a4e66d43191f.tar.xz |
wip #8489
Diffstat (limited to 'packages/demobank-ui/src/pages/LoginForm.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/LoginForm.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/demobank-ui/src/pages/LoginForm.tsx b/packages/demobank-ui/src/pages/LoginForm.tsx index e62759415..bd20e79c8 100644 --- a/packages/demobank-ui/src/pages/LoginForm.tsx +++ b/packages/demobank-ui/src/pages/LoginForm.tsx @@ -53,7 +53,7 @@ export function LoginForm({ ); const [password, setPassword] = useState<string | undefined>(); const { i18n } = useTranslationContext(); - const { api } = useBankCoreApiContext(); + const { authenticator } = useBankCoreApiContext(); const [notification, withErrorHandler] = useLocalNotificationHandler(); const { config } = useBankCoreApiContext(); @@ -77,8 +77,7 @@ export function LoginForm({ } const loginHandler = !username || !password ? undefined : withErrorHandler( - async () => api - .getAuthenticationAPI(username) + async () => authenticator(username) .createAccessToken(password, { // scope: "readwrite" as "write", // FIX: different than merchant scope: "readwrite", |