Some updates to the frontent

This commit is contained in:
2024-05-02 23:56:55 +02:00
parent 60f4934e60
commit f9aa2c683d
7 changed files with 164 additions and 73 deletions

View File

@ -14,4 +14,8 @@ class SoftplayerCredsHelpers {
String localStorageEntry(String key) => window.localStorage[key]!;
SoftplayerCreds fromLocalStorage() => SoftplayerCreds(
token: localStorageEntry("token"), uuid: localStorageEntry("uuid"));
void cleanupLocalStorate() {
window.localStorage.remove("token");
window.localStorage.remove("uuid");
}
}