Improve code quality and add comments
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user