mirror of
https://github.com/madari-media/madari-oss.git
synced 2026-03-11 21:26:56 +00:00
11 lines
296 B
Dart
11 lines
296 B
Dart
import '../engine/engine.dart';
|
|
|
|
Future<void> refreshAuth() async {
|
|
final pb = AppEngine.engine.pb;
|
|
final userCollection = pb.collection("users");
|
|
|
|
final user = await userCollection.getOne(
|
|
AppEngine.engine.pb.authStore.record!.id,
|
|
);
|
|
pb.authStore.save(pb.authStore.token, user);
|
|
}
|