Answers for "jwt token local storage in angular"

0

jwt token local storage in angular

import { Injectable } from '@angular/core';
 
@Injectable()
export class LocalStorageService {
 
    set(key: string, value: string) {
        localStorage.setItem(key, value);
    }
 
    get(key: string) {
        return localStorage.getItem(key);
    }
 
    remove(key: string) {
        localStorage.removeItem(key);
    }
}
Posted by: Guest on June-10-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language