Skip to content
Snippets Groups Projects

final login and registration process

Merged Zink Hannah requested to merge LoginPage into main
All threads resolved!
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
@@ -37,6 +37,7 @@ function Register() {
)}
)
const {token} = await res.json();
// @ts-ignore
const decodedToken = jwt_decode(token);
const expirationDate = new Date(decodedToken.exp * 1000);
setCookie("Jwt",token, expirationDate);
Loading