Skip to main content

requireAnyAuth

Requires either API or admin user authentication.

Admin roles cannot be considered by this directive because API users have no equivalent.

directive @requireAnyAuth(
stationIdArg: String = "stationId"
) on FIELD_DEFINITION

Arguments

requireAnyAuth.stationIdArg ● String scalar references

Field to use for validating a Station ID to restrict API users to assigned station.