requireAuth method
Requires authentication - throws exception if not authenticated.
Implementation
void requireAuth([String? message]) {
if (isGuest) {
throw AuthException(message ?? 'Authentication required');
}
}
Requires authentication - throws exception if not authenticated.
void requireAuth([String? message]) {
if (isGuest) {
throw AuthException(message ?? 'Authentication required');
}
}