new login system complete, that's it for today :3

This commit is contained in:
Kima
2024-08-14 00:53:12 +02:00
parent 148a43663c
commit 3a2fc67cb2
7 changed files with 412 additions and 268 deletions

View File

@@ -39,4 +39,16 @@ class JwtUtils {
}
return null;
}
static String? getInstituteFromJWT(String jwt) {
var jwtData = decodeJwt(jwt);
return jwtData?["kreta:institute_code"];
}
static String? getUsernameFromJWT(String jwt) {
var jwtData = decodeJwt(jwt);
return jwtData?["kreta:user_name"];
}
}