File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
test-harness/modules_app/api/handlers Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,17 @@ component accessors="true" singleton{
83
83
}
84
84
}
85
85
86
+ /**
87
+ * Logout a user and invalidate their token
88
+ *
89
+ * @user
90
+ * @customClaims
91
+ */
92
+ function logout (){
93
+ invalidate ( this .getToken () );
94
+ getAuthService ().logout ();
95
+ }
96
+
86
97
/**
87
98
* Create a token according to the passed user object and custom claims.
88
99
* We are assuming the user is a valid and authenticated user.
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ component {
73
73
* logout
74
74
*/
75
75
function logout ( event , rc , prc ){
76
- auth ().logout ();
76
+ jwtAuth ().logout ();
77
77
return { " error" : false , " data" : " " , " message" : " Successfully logged out" };
78
78
}
79
79
You can’t perform that action at this time.
0 commit comments