Skip to content

Commit 3da62da

Browse files
committed
shortcut for isLoggedIn()
1 parent 4162ad5 commit 3da62da

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

models/jwt/JwtService.cfc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ component accessors="true" singleton{
9494
getAuthService().logout();
9595
}
9696

97+
/**
98+
* Shortcut function to our authentication services to check if we are logged in
99+
*/
100+
boolean function isLoggedIn(){
101+
return getAuthService().isLoggedIn();
102+
}
103+
97104
/**
98105
* Create a token according to the passed user object and custom claims.
99106
* We are assuming the user is a valid and authenticated user.

0 commit comments

Comments
 (0)