-
-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10019b4
commit 56478a7
Showing
20 changed files
with
357 additions
and
361 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
--- | ||
import "../app.css" | ||
import "../app.css"; | ||
const session = await Astro.locals.auth.validate(); | ||
if (!session) return Astro.redirect("/login"); | ||
if (!session.user.emailVerified) { | ||
return Astro.redirect("/email-verification") | ||
return Astro.redirect("/email-verification"); | ||
} | ||
--- | ||
|
||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<meta name="generator" content={Astro.generator} /> | ||
<title>Email & password auth with Lucia</title> | ||
</head> | ||
<body> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<meta name="generator" content={Astro.generator} /> | ||
<title>Email & password auth with Lucia</title> | ||
</head> | ||
<body> | ||
<h1>Profile</h1> | ||
<p>User id: {session.user.userId}</p> | ||
<p>Email: {session.user.email}</p> | ||
<form method="post" action="/logout"> | ||
<input type="submit" value="Sign out" /> | ||
</form> | ||
</body> | ||
</body> | ||
</html> |
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
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
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
Oops, something went wrong.
56478a7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
lucia – ./documentation
lucia-git-main-pilcrowonpaper.vercel.app
lucia-auth.vercel.app
lucia-pilcrowonpaper.vercel.app
lucia-sveltekit.vercel.app
lucia-auth.com
v2.lucia-auth.com
www.lucia-auth.com