build method
Implementation
@override
Component build(BuildContext context) {
return GeneratedRedirect(generate: (req) async {
if (req.context.accessToken != null) {
return authorized;
} else {
return unauthorized;
}
});
}