Last active
November 9, 2021 00:25
-
-
Save rajuashok/a2f1fb6ea29acb2ee9aeaa73e4275bb6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { login } from '../lib/auth'; | |
// The login function has the following signature: | |
// const login = async (email: string, password: string) => { ... } | |
export default function Login() { | |
return ( | |
<div> | |
<Heading>Please login</Heading> | |
<input | |
type='email' | |
name='email' | |
required={true} | |
placeholder='Enter your email' /> | |
<input | |
type='password' | |
name='password' | |
required={true} | |
placeholder='****' /> | |
<button>Login</button> | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment