feat: dmca page
This commit is contained in:
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user