feat: auth page
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { Injectable } from "@angular/core";
|
||||
@Injectable({
|
||||
providedIn: "root",
|
||||
})
|
||||
export class RulibAuthService {
|
||||
setToken(token: string) {
|
||||
localStorage.setItem("token", token);
|
||||
}
|
||||
|
||||
getToken(): string {
|
||||
return localStorage.getItem("token") ?? "";
|
||||
}
|
||||
|
||||
//TODO: Проверка токена
|
||||
}
|
||||
Reference in New Issue
Block a user