update authentication with supertokens

This commit is contained in:
2024-07-23 15:29:51 +02:00
parent 69fe58ffaf
commit 02aede01d0
18 changed files with 379 additions and 260 deletions

View File

@@ -2,31 +2,36 @@
class AppUser {
final int idusers;
final String email;
final int docOffice_ID;
// ignore: non_constant_identifier_names
final int docOffice_id;
final String fname;
final String lname;
final String title;
final String type;
// ignore: non_constant_identifier_names
final String app_id;
final String username;
const AppUser(
this.idusers,
this.email,
this.docOffice_ID,
this.docOffice_id,
this.fname,
this.lname,
this.title,
this.type,
this.app_id,
this.username,
);
factory AppUser.fromJson(dynamic json) {
return AppUser(
json['idusers'],
json['email'],
json['docOffice_ID'],
json['docOffice_id'],
json['fname'],
json['lname'],
json['title'],
json['type'],
json['app_id'],
json['username'],
);
}
}