Skip to content

Instantly share code, notes, and snippets.

@rajuashok
Last active November 9, 2021 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajuashok/a2f1fb6ea29acb2ee9aeaa73e4275bb6 to your computer and use it in GitHub Desktop.
Save rajuashok/a2f1fb6ea29acb2ee9aeaa73e4275bb6 to your computer and use it in GitHub Desktop.
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