Skip to content
Snippets Groups Projects
Commit 619d1ac3 authored by Zink Hannah's avatar Zink Hannah
Browse files

Jetzt funktioniert nichts mehr :(

parent 4c7872dd
No related branches found
No related tags found
1 merge request!29final login and registration process
This commit is part of merge request !29. Comments created here will be created in the context of that merge request.
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment