()
| 3 | import { IonButton } from "@ionic/react"; |
| 4 | |
| 5 | const LoginButton: React.FC = () => { |
| 6 | const { loginWithRedirect } = useAuth0(); |
| 7 | |
| 8 | const login = async () => { |
| 9 | await loginWithRedirect({ |
| 10 | async openUrl(url) { |
| 11 | await Browser.open({ |
| 12 | url, |
| 13 | windowName: "_self" |
| 14 | }); |
| 15 | } |
| 16 | }); |
| 17 | }; |
| 18 | |
| 19 | return <IonButton onClick={login}>Log in</IonButton>; |
| 20 | }; |
| 21 | |
| 22 | export default LoginButton; |
nothing calls this directly
no outgoing calls
no test coverage detected