Skip to content

Commit

Permalink
chore(docs): add HTML sign-in form example for credentials - express (n…
Browse files Browse the repository at this point in the history
…extauthjs#12316)

Co-authored-by: Sebastian Beltran <[email protected]>
Co-authored-by: Nico Domino <[email protected]>
  • Loading branch information
3 people authored and falcowinkler committed Jan 5, 2025
1 parent 579e59a commit 5865d56
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/pages/getting-started/authentication/credentials.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,33 @@ export default component$(() => {
```

</Code.Svelte>

<Code.Express>

```html filename="views/signin.html"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign In</title>
</head>
<body>
<h1>Sign In</h1>
<form action="/auth/signin" method="POST">
<label for="email">Email:</label>
<input type="email" name="email" id="email" required />
<br />
<label for="password">Password:</label>
<input type="password" name="password" id="password" required />
<br />
<button type="submit">Sign In</button>
</form>
</body>
</html>
```
</Code.Express>

</Code>

</Steps>
Expand Down

0 comments on commit 5865d56

Please sign in to comment.