Skip to content

SudoSOS Back-end API / internal/middleware / TokenRestrictions

Interface: TokenRestrictions ​

Properties ​

acceptedTOS ​

ts
acceptedTOS: boolean;

Whether the TOS should be accepted to access this endpoint. True by default.


availableDuringMaintenance ​

ts
availableDuringMaintenance: boolean;

Whether this endpoint should remain accessible when maintenance mode is enabled.


lesser ​

ts
lesser: boolean;

Whether the token has "less" rights compared to a full access token. True by default. A token is considered "lesser" if it has a posId property set.