Update the env proto and fix auth
This commit is contained in:
17
lib/api/grpc/creds.dart
Normal file
17
lib/api/grpc/creds.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
import 'dart:html';
|
||||
|
||||
class SoftplayerCreds {
|
||||
final String uuid;
|
||||
final String token;
|
||||
|
||||
SoftplayerCreds({
|
||||
required this.token,
|
||||
required this.uuid,
|
||||
});
|
||||
}
|
||||
|
||||
class SoftplayerCredsHelpers {
|
||||
String localStorageEntry(String key) => window.localStorage[key]!;
|
||||
SoftplayerCreds fromLocalStorage() => SoftplayerCreds(
|
||||
token: localStorageEntry("token"), uuid: localStorageEntry("uuid"));
|
||||
}
|
||||
Reference in New Issue
Block a user