私はコーディングが初めてですが、私は自分のウェブサイトで次のユーザー名とパスワード認証をコーディングしました。JWT認証をハードコードされたフロントエンドのユーザー名とパスワード認証に追加することはできますか?
<table>
<form name="login">
<tr><th colspan="2">Login</th></tr>
<tr><td>Username:</td>
<td><input type="text" name="username"/></td></tr>
<tr><td>Password:</td>
<td><input type="password" name="password"/></td></tr>
<td colspan="2"><center><input type="button" onclick="check(this.form)" value="Submit"/>
<input type="reset" value="Reset"/></center></td>
</form>
</table>
<script>
function check(form)
{
if(form.username.value == "user1" && form.password.value == "user1")
{
location="index.html"
}
else
{
alert("Incorrect credentials.")
}
}
</script>
これにJWT認証を追加することはできますか?