token校验函数改为异步
This commit is contained in:
@@ -13,7 +13,7 @@ abstract class WebServer {
|
||||
|
||||
void start(int port,
|
||||
{Response? Function(Request, Map<String, dynamic>)? interceptor,
|
||||
TokenResult Function(String?)? tokenCheck});
|
||||
Future<TokenResult> Function(String?)? tokenCheck});
|
||||
void stop();
|
||||
void addHandler(handler);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user