feat: dmca page

This commit is contained in:
2024-07-22 14:42:09 +03:00
parent 448cdcf9c2
commit 8f6193b846
12 changed files with 78 additions and 27 deletions

View File

@@ -28,6 +28,12 @@ export class RulibAuthService implements OnDestroy {
return token_data.rulib_token ?? "";
}
deleteToken(): void {
const token_data: IToken = JSON.parse(localStorage.getItem("token") ?? "{}");
token_data.rulib_token = "";
localStorage.setItem("token", JSON.stringify(token_data));
}
checkToken(token: string): Observable<boolean> {
return this.http
.get(this.api_url + "/api/auth/me", {