GuardDefinition.authenticated constructor

const GuardDefinition.authenticated({
  1. String? realm = 'Restricted',
})

Creates an authenticated guard using realm for its challenge.

Implementation

const GuardDefinition.authenticated({this.realm = 'Restricted'})
  : type = GuardType.authenticated,
    roles = const [],
    any = false;