-
Notifications
You must be signed in to change notification settings - Fork 7
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
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Nexus Demo</title> | ||
<script src="https://cdn.tailwindcss.com?version=3.4.5"></script> | ||
<script src="./index.js"></script> | ||
</head> | ||
<body class="bg-slate-200"> | ||
<h1>Login</h1> | ||
<!-- <form id="loginForm"> --> | ||
<label for="userId">User ID</label> | ||
<input type="text" id="userId" name="user_id" required placeholder="Enter User ID" /> | ||
<button type="button" onClick="onLoginPressed()">Submit</button> | ||
<!-- </form> --> | ||
<script> | ||
document.getElementById("userId").value = userIdFromUrl(); | ||
</script | ||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
function userIdFromUrl() { | ||
const params = new URLSearchParams(window.location.search); | ||
return params.get("user_id"); | ||
} | ||
|
||
function onLoginPressed() { | ||
console.log("button pressed") | ||
|
||
} |
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,5 +1,5 @@ | ||
CREATE TABLE "users" | ||
( | ||
user_id BLOB PRIMARY KEY NOT NULL, | ||
user_id BLOB PRIMARY KEY NOT NULL, | ||
pubkeys_jwks TEXT NOT NULL | ||
) STRICT; |