feat: auth page

This commit is contained in:
2024-07-10 16:35:14 +03:00
parent 6833105604
commit 112e76ab45
10 changed files with 199 additions and 46 deletions

View File

@@ -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: Проверка токена
}