SimpleCloudNotifier/flutter/lib/state/token_source.dart
Mike Schwörer ac299ec7ba
All checks were successful
Build Docker and Deploy / Build Docker Container (push) Successful in 2m58s
Build Docker and Deploy / Deploy to Server (push) Successful in 32s
Better client/login/authState handling
2024-06-02 17:09:57 +02:00

22 lines
340 B
Dart

abstract class TokenSource {
String getToken();
String getUserID();
}
class DirectTokenSource implements TokenSource {
final String _userID;
final String _token;
DirectTokenSource(this._userID, this._token);
@override
String getUserID() {
return _userID;
}
@override
String getToken() {
return _token;
}
}