Improve code quality and add comments

This commit is contained in:
kevinpauer
2022-05-08 19:52:08 +02:00
parent a2b4686528
commit 0fc9e8d37f
10 changed files with 66 additions and 10 deletions

View File

@@ -8,6 +8,7 @@ export class TokenStorageService {
constructor() {}
/**
* Function to sign out user
* @returns void
*/
signOut(): void {
@@ -15,6 +16,7 @@ export class TokenStorageService {
}
/**
* Function to save token
* @param {string} token
* @returns void
*/
@@ -24,6 +26,7 @@ export class TokenStorageService {
}
/**
* Function to get token
* @returns string
*/
public getToken(): string | null {
@@ -31,6 +34,7 @@ export class TokenStorageService {
}
/**
* Function to save user
* @param {any} user
* @returns void
*/
@@ -40,6 +44,7 @@ export class TokenStorageService {
}
/**
* Function to get user
* @returns any
*/
public getUser(): any {