Skip to content

Commit

Permalink
Feat: BaseController is sett
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianBalunan committed Apr 15, 2026
1 parent 2690e7a commit 484bcd3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ public void setAuthToken(AuthenticationService authToken){
this.authToken = authToken;
authTokenisSet();
};
protected void authTokenisSet(){} // Do stuff after authtoken is set, on each controller
protected abstract void authTokenisSet();
// Update ui (login button or profile circle) after authtoken is set, on each controller.


protected boolean isLoggedin(){
return authToken.isLoggedin() && authToken != null;
}

}

0 comments on commit 484bcd3

Please sign in to comment.