[FEAT] add get userID

This commit is contained in:
Edouard DUPIN 2024-12-23 23:56:12 +01:00
parent 8d63a758f7
commit add346cf29

View File

@ -19,4 +19,11 @@ public class GenericContext implements Principal {
}
return this.userByToken.name;
}
public Long getUserID() {
if (this.userByToken != null) {
return this.userByToken.id;
}
return null;
}
}