feat(useragent): bootstrap / unseal flow implementattion

This commit is contained in:
hdbg
2026-03-15 22:12:21 +01:00
parent c61a9e30ac
commit 4db102b3d1
19 changed files with 1213 additions and 114 deletions

View File

@@ -6,6 +6,7 @@ part 'bootstrap_token.g.dart';
@Riverpod(keepAlive: true)
class BootstrapToken extends _$BootstrapToken {
@override
String? build() {
return null;
}
@@ -14,9 +15,13 @@ class BootstrapToken extends _$BootstrapToken {
state = token;
}
void clear() {
state = null;
}
String? take() {
final token = state;
state = null;
return token;
}
}
}