build method

  1. @override
Component build(
  1. BuildContext context
)
override

Implementation

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