File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,13 @@ const App = () => {
50
50
useEffect ( ( ) => {
51
51
checkLogin ( ) ;
52
52
} , [ checkCookie , updateSession ] ) ;
53
+ /**
54
+ * checks if user was already logged in, and navigates them to home if cookie was already set
55
+ * @method
56
+ * @async
57
+ * @params none
58
+ * @returns {Promise<void> } navigates user to endpoint /home if they were logged in
59
+ */
53
60
54
61
const navigateToHome = async ( ) => {
55
62
await checkLogin ( ) ;
Original file line number Diff line number Diff line change @@ -36,12 +36,12 @@ const Login = (props: loginProps): JSX.Element => {
36
36
authenticateUser ( username , password ) ;
37
37
} ;
38
38
39
- /*
40
- authenticates users username and password
41
- @method
42
- @async
43
- @returns promise when sending a request to backend to login is successful, and updates users session and cookies
39
+ /** authenticates users username and password
40
+ * @method
41
+ * @async
42
+ * @returns {Promise<void> } returns promise when sending a request to backend to login is successful, and updates users session and cookies
44
43
*/
44
+
45
45
const authenticateUser = async (
46
46
username : string ,
47
47
password : string
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const Metrics = (): JSX.Element => {
11
11
const button = kubernetesOrNah === 1 ? 'Containers' : 'Kubernetes Cluster' ;
12
12
13
13
useEffect ( ( ) => {
14
- /*
14
+ /**
15
15
* Retrieves the API and UID key
16
16
* @method
17
17
* @async
You can’t perform that action at this time.
0 commit comments